Hello I am using a framework calles FCORE aka Frazzles Framework and I am trying to make handcuffs an item. BTW I am new to coding.
function zipties()
Citizen.CreateThread(function()
local t, distance = GetClosestPlayer()
if(distance ~= -1 and distance < 3) then
TriggerServerEvent("police:cuffGranted", GetPlayerServerId(t))
else
Messages(5)
end
end
end
end
Thanks