Fix CharCreator

This commit is contained in:
VegaZ
2019-05-06 21:49:01 +02:00
parent d8399840a8
commit ae7371efb9
3 changed files with 5 additions and 5 deletions

View File

@@ -546,7 +546,7 @@ export default function charCreator() {
// CREATOR HAIR & COLORS END // CREATOR HAIR & COLORS END
// EVENTS // EVENTS
mp.events.add("toggleCreator", (active, charData) => { mp.events.add("toggleCreator", () => {
if (creatorCamera === undefined) { if (creatorCamera === undefined) {
creatorCamera = mp.cameras.new("creatorCamera", creatorCoords.camera, new mp.Vector3(0, 0, 0), 45); creatorCamera = mp.cameras.new("creatorCamera", creatorCoords.camera, new mp.Vector3(0, 0, 0), 45);
creatorCamera.pointAtCoord(creatorCoords.cameraLookAt); creatorCamera.pointAtCoord(creatorCoords.cameraLookAt);

View File

@@ -24,8 +24,8 @@ business();
import cardealer from './Business/cardealer'; import cardealer from './Business/cardealer';
cardealer(); cardealer();
//import charCreator from './CharCreator/main'; import charCreator from './CharCreator/main';
//charCreator(); charCreator();
import coloredHeadLights from './coloredhlights/index'; import coloredHeadLights from './coloredhlights/index';
coloredHeadLights(); coloredHeadLights();

View File

@@ -50,8 +50,8 @@ namespace ReallifeGamemode.Server.Events
NAPI.Data.SetWorldData("playerCreatorDimension", currentPlayerCreatorDimension); NAPI.Data.SetWorldData("playerCreatorDimension", currentPlayerCreatorDimension);
player.Dimension = NAPI.Data.GetWorldData("playerCreatorDimension"); player.Dimension = NAPI.Data.GetWorldData("playerCreatorDimension");
player.TriggerEvent("toggleCreator"); player.TriggerEvent("toggleCreator");
player.Position = new Vector3(402.8664, -996.4108, -99.00027);
player.Position = new Vector3(user.PositionX, user.PositionY, user.PositionZ); //player.Position = new Vector3(user.PositionX, user.PositionY, user.PositionZ);
} }
else if (dbContext.Users.Where(u => u.SocialClubName == player.SocialClubName).Count() >= 3) else if (dbContext.Users.Where(u => u.SocialClubName == player.SocialClubName).Count() >= 3)