Skip to content

Commit

Permalink
inc. distance
Browse files Browse the repository at this point in the history
  • Loading branch information
murfasa committed Apr 15, 2020
1 parent 4b44713 commit 44be7f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CuffedUp/kb-c.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Citizen.CreateThread(function()
local susCoords = GetEntityCoords(entity)
local dist = Vdist2(pedCoords.x, pedCoords.y, pedCoords.z, susCoords.x, susCoords.y, susCoords.z)

if (entity ~= 0) and dist < 1 then
if (entity ~= 0) and dist < 1.5 then
drawNotification('~o~[Cuff Script] ~g~Cuffing player!')
TriggerServerEvent('cu:togglecuffentity', GetPlayerServerId(playerEntity), GetPlayerServerId(player))
else
Expand Down

0 comments on commit 44be7f9

Please sign in to comment.