Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. function enterVehicle ( theVehicle, seat, jacked ) -- Player enters a vehicle
  2. if (getVehicleID(theVehicle)==408) then -- That vehicle is a trashmaster
  3. outputChatBox ( "Type /startjob to start your route as a garbage collector.", source ) -- Announce the /startjob command
  4. end
  5. end
  6. addEventHandler ( "onPlayerVehicleEnter", getRootElement(), enterVehicle ) -- add an event handler for onPlayerVehicleEnter
  7.  
  8. function consolecreateMarker ( thePlayer, startjob )
  9. if (getVehicleID(getPlayerOccupiedVehicle(thePlayer))==408) then
  10. if ( thePlayer ) then
  11. theMarker = createMarker ( 1797, -1077, 24, checkpoint, 5, 255, 0, 0, 170 ) and ( createBlip ( 1797, -1077, 24, 0, 2, 255, 0, 0, 255, 0, 99999.0, playerSource ))
  12. if ( theMarker ) then
  13. outputChatBox ( "Operator says: Your route is starting at the Mulholland parking lot beneath the intersection.", playerSource, 0, 200, 0, false )
  14. end
  15.  
  16. else
  17. outputChatBox ( "You need to be in a trashmaster to use this command.", playerSource, 255, 0, 0, false )
  18. end
  19. end
  20. end
  21. addCommandHandler ( "startjob", consolecreateMarker )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement