Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --CLIENT SIDE CODE--
- local handsup = false
- RegisterNetEvent("csrp_Handsup")
- AddEventHandler("csrp_Handsup", function()
- if not handsup then
- TaskHandsUp(GetPlayerPed(-1), -1, GetPlayerPed(-1), -1, true)
- handsup = true
- else
- UpdateTaskHandsUpDuration(GetPlayerPed(-1), 2)
- end
- end)
- -- SERVER SIDE CODE --
- AddEventHandler("chatMessage", function(source, n, message)
- if message == "/handsup" then
- TriggerClientEvent("csrp_Handsup", source)
- end
- CancelEvent()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement