Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ShowVehName()
- guiSetVisible(vehname, true)
- end
- function HideVehName()
- guiSetVisible(vehname, false)
- end
- function SetVehicleName()
- if not getPedOccupiedVehicle(localPlayer) then HideVehName() end
- guiSetText(vehname, tostring(getVehicleName(getPedOccupiedVehicle(localPlayer))))
- end
- addEventHandler("onClientResourceStart", resourceRoot, function()
- vehname = guiCreateLabel(0.894, 0.94, 0.1, 0.1, "RZOL? RZOL? RZOL? RZOL? RZOL? RZOL? RZOL? RZOL? RZOL? RZOL? RZOL? RZOL? RZOL? ", true)
- end)
- addEventHandler("onClientPlayerWasted", localPlayer, function()
- if source == localPlayer and not getPedOccupiedVehicle(localPlayer) then HideVehName() end
- end)
- addEventHandler("onClientVehicleEnter", root, function()
- if source == localPlayer and getPedOccupiedVehicle(localPlayer) then ShowVehName() end
- end)
- addEventHandler("onClientVehicleStartExit", root, function()
- if source == localPlayer and getPedOccupiedVehicle(localPlayer) then HideVehName() end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement