Marker = createMarker(0, 0, 0, "cylinder", 3, 255, 255, 0) local markers = { [1] = {-1369, -216, 6}, [2] = {-2501, -604, 133} } function createMarkerOnStart() local x, y, z = unpack(positions[math.random(1,2)]) marker = createMarker(tostring(x), tostring(y), tostring(z), "cylinder", 3, 255, 255, 0) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), createMarkerOnStart) function "idk chnya el function" addEventHandler("newMarker", markers) end function setTimer() setTimer(createMarkerOnStart, 60000, 1) end end function takePlayerMoney bool takePlayerMoney ( int amount ) end function getVehicleController player getVehicleController ( 420 ) end end thePed = getRandomPlayer() theVehicle = getPedOccupiedVehicle ( thePed ) if ( theVehicle ) then outputChatBox ( getPlayerName(thePed).." is in a vehicle in seat number " .. getPedOccupiedVehicleSeat ( thePed ) .. "." ) else outputChatBox ( getPlayerName(thePed).." is not in a vehicle." ) end function onStolenVehicleDamage ( loss ) local driver = getVehicleOccupant ( source ) -- get the player sitting in seat 0 if ( driver ) then -- if the driver exists, display a message outputChatBox ( getPlayerName ( driver ) .. " is wrecking the vehicle he stole!" ) end end addEventHandler ( "onVehicleDamage", stolenVehicle, onStolenVehicleDamage ) -- get the root element rootElement = getRootElement() -- define our handler function function onPlayerSpawnHandler ( thePlayer ) -- get the player's name local playerName = getPlayerName( thePlayer ) -- output in the chat box that they've spawned outputChatBox ( playerName .. " has spawned!" ) end addEventHandler( "onPlayerSpawn", rootElement, onPlayerSpawnHandler )