Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- menuHouse.on('newHouseCreation', () => {
- alt.log(newHouseCreation);
- alt.log(newHouseCreation.name);
- alt.log(newHouseCreation.pexterior);
- alt.log(newHouseCreation.pexterior.x);
- alt.log(newHouseCreation.pexterior.y);
- alt.log(newHouseCreation.pexterior.z);
- alt.log(newHouseCreation.pinterior);
- alt.log(newHouseCreation.pinterior.x);
- alt.log(newHouseCreation.pinterior.y);
- alt.log(newHouseCreation.pinterior.z);
- alt.log(newHouseCreation.openDoor);
- if (newHouseCreation === undefined && newHouseCreation.name === undefined && newHouseCreation.pexterior === undefined && newHouseCreation.pinterior === undefined && newHouseCreation.openDoor === undefined) {
- alt.log('pas envoyé au server');
- game.setNotificationTextEntry('STRING');
- game.setNotificationBackgroundColor(6);
- game.addTextComponentSubstringPlayerName("Vous n'avez pas fini de créer la maison.");
- game.drawNotification(false, true);
- } else {
- alt.log('envoyé au server');
- alt.emitServer('newHouseCreationServer', newHouseCreation);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement