Jump to content

diesel974

Members
  • Posts

    53
  • Joined

  • Last visited

Everything posted by diesel974

  1. Hmm, you can remove the Hood, Trunk, Front left door, Front right door,Rear left and Rear right door with this function : setVehicleDoorState https://wiki.multitheftauto.com/wiki/Se ... eDoorState.
  2. if (getElementData(vehicle,"JobOwner") == getElementData(txJobMarker1[hitElement],"JobOwner" )) then This line is gonna check whether the current player is in the job vehicle given to him, which is infact a taxi, with element data "JobOwner" set to his name. So,if for example, the player decides to take another vehicle and drive directly to the marker,the passengers would not be warped in his vehicle because the vehicle does not contain the element data required. oh God thats such a stupid error from my part. Lol, thanks Den, im sure thats the error. Thank you very much for your help
  3. Hey all, i tried to make a taxi job using atleast all the knowledge i have about scriptin in Lua. So basically,my problem is when 2 or more players doing the job, the message player1 was supposed to see,player2 also can see it. Also,sometimes, the blip that was visible for player1 only, becomes visible also to player2 ((((( i tried to see where the bug was, but no idea. Everything i did seems to be perfectly alright but some bugs had to show there ugly faces So here is the code As you can see, i had to use setElementData and getElementData to avoid collisions with players. i used their names to differentiate them. (This is the serverside, the clientside contains only the gui, so no need to worry about the client side) The problem: Because 2 players where doing the job at that time, and i got 2 messages instead of 1 and i could see the marker's blip of the other player too. Help me guys, and thanks in advance
×
×
  • Create New...