Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. menuHouse.on('newHouseCreation', () => {
  2.                 alt.log(newHouseCreation);
  3.                 alt.log(newHouseCreation.name);
  4.                 alt.log(newHouseCreation.pexterior);
  5.                 alt.log(newHouseCreation.pexterior.x);
  6.                 alt.log(newHouseCreation.pexterior.y);
  7.                 alt.log(newHouseCreation.pexterior.z);
  8.                 alt.log(newHouseCreation.pinterior);
  9.                 alt.log(newHouseCreation.pinterior.x);
  10.                 alt.log(newHouseCreation.pinterior.y);
  11.                 alt.log(newHouseCreation.pinterior.z);
  12.                 alt.log(newHouseCreation.openDoor);
  13.                 if (newHouseCreation === undefined && newHouseCreation.name === undefined && newHouseCreation.pexterior === undefined && newHouseCreation.pinterior === undefined && newHouseCreation.openDoor === undefined) {
  14.                     alt.log('pas envoyé au server');
  15.                     game.setNotificationTextEntry('STRING');
  16.                     game.setNotificationBackgroundColor(6);
  17.                     game.addTextComponentSubstringPlayerName("Vous n'avez pas fini de créer la maison.");
  18.                     game.drawNotification(false, true);
  19.                 } else {
  20.                     alt.log('envoyé au server');
  21.                     alt.emitServer('newHouseCreationServer', newHouseCreation);
  22.                 }
  23.             });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement