Files
Elite-Gaming-FiveM-Backup/resources/Hands-Up/client.lua
T
Jacob 3446af804d Bunch of QOL improvements
+ Re-wrote the commands script to actually register the commands.
+ Changed both the Hands-Up and Point-Finger script to use commands. Mostly had to re-write Hands-Up entirely and change up the point script alittle.
+ Fixed a car which had a ridiculous handling data file.
2023-05-28 23:45:43 +01:00

23 lines
767 B
Lua

RegisterCommand("handsup", function(source, args, raw)
--local arg = args[1]
local dict = "missminuteman_1ig_2"
if not IsEntityPlayingAnim(GetPlayerPed(-1), dict, "handsup_enter", 3) then
--Citizen.Trace("Not active\n")
RequestAnimDict(dict)
while not HasAnimDictLoaded(dict) do
Citizen.Wait(100)
end
TaskPlayAnim(GetPlayerPed(-1), dict, "handsup_enter", 8.0, 8.0, -1, 50, 0, false, false, false)
else
--Citizen.Trace("Active\n")
ClearPedTasks(GetPlayerPed(-1))
end
end, false)
Citizen.CreateThread(function()
TriggerEvent('chat:addSuggestion', '/handsup', 'Put your hands up', { })
--TriggerEvent('chat:addSuggestion', '/handsup', 'Put your hands up', { { name = "emotename", help = "dance, camera, sit or any valid emote." } })
end)