Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- CONFIG --
- -- Allow passengers to shoot
- local passengerDriveBy = true
- -- CODE --
- Citizen.CreateThread(function()
- while true do
- Wait(1)
- playerPed = GetPlayerPed(-1)
- car = GetVehiclePedIsIn(playerPed, false)
- if car then
- if GetPedInVehicleSeat(car, -1) == playerPed then
- SetPlayerCanDoDriveBy(PlayerId(), false)
- elseif passengerDriveBy then
- SetPlayerCanDoDriveBy(PlayerId(), true)
- else
- SetPlayerCanDoDriveBy(PlayerId(), false)
- end
- end
- end
- end)
Add Comment
Please, Sign In to add comment