Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function enterVehicle ( theVehicle, seat, jacked ) -- Player enters a vehicle
- if (getVehicleID(theVehicle)==408) then -- That vehicle is a trashmaster
- outputChatBox ( "Type /startjob to start your route as a garbage collector.", source ) -- Announce the /startjob command
- end
- end
- addEventHandler ( "onPlayerVehicleEnter", getRootElement(), enterVehicle ) -- add an event handler for onPlayerVehicleEnter
- function consolecreateMarker ( thePlayer, startjob )
- if (getVehicleID(getPlayerOccupiedVehicle(thePlayer))==408) then
- if ( thePlayer ) then
- 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 ))
- if ( theMarker ) then
- outputChatBox ( "Operator says: Your route is starting at the Mulholland parking lot beneath the intersection.", playerSource, 0, 200, 0, false )
- end
- else
- outputChatBox ( "You need to be in a trashmaster to use this command.", playerSource, 255, 0, 0, false )
- end
- end
- end
- addCommandHandler ( "startjob", consolecreateMarker )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement