Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function entering( thePlayer, seat )
- local model = getElementModel ( source )
- local factionID = getElementData(getPlayerTeam(thePlayer), "id")
- if model == 432 or model == 447 or model == 476 or model == 520 then
- if not exports.global:isPlayerHeadAdmin(thePlayer) then
- if not (getElementDimension(thePlayer) == 1) then
- if not factionID == 238 then
- toggleControl ( "vehicle_fire", false )
- toggleControl ( "vehicle_secondary_fire", false )
- end
- end
- end
- addEventHandler("onClientVehicleEnter", getRootElement(), entering)
- function exiting( thePlayer, seat )
- if thePlayer == localPlayer then
- local model = getElementModel ( source )
- if model == 432 or model == 447 or model == 476 or model == 520 then
- toggleControl ( "vehicle_fire", true )
- toggleControl ( "vehicle_secondary_fire", true )
- end
- end
- end
- addEventHandler("onClientVehicleExit", getRootElement(), exiting)
Advertisement
Add Comment
Please, Sign In to add comment