Fix CharCreator
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user