Hello, everyone!
I am trying to play some animation in client.lua (serverside). In worldwide i find this snippet, but it seems not working. Can someone help me to fight this code?) Thanks in advance.
function arrest(commandEntered, player)
TriggerClientEvent(arrest, command, player)
if commandEntered("/arrest" ..PlayerName) then
local playerName = GetPlayerName(source)
local arrestPed = TaskArrestPed(player, target)
if IsPedBeingArrested(player) = true then
PlayEntityAnim("random@arrests@busted")
elseif IsPedCuffed = true then
PlayEntityAnim("get_up@cuffed")
else cancelEvent()
end
end