Advertisement
Sjoerdva97

Untitled

Apr 28th, 2018
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. local cuffs = {}
  2.  
  3. function attachHandcuffs(player)
  4.     if (not isElement(player)) then return end
  5.     if (cuffs[player]) then destroyElement(cuffs[player]) end
  6.     cuffs[player] = createObject(331, 0, 0, 0, 0, 0, 4)
  7.     setObjectScale(cuffs[player], 1.9)
  8.     exports.bone_attach:attachElementToBone(cuffs[player], player, 12, -0.1, 0.02, 0.1, -50, 90, 85)
  9.     setPedAnimation(player, "ped", "pass_Smoke_in_car", 50, false, false, false, false)
  10.     setTimer(setPedAnimationProgress, 50, 1, player, "pass_Smoke_in_car", 2)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement