Advertisement
Guest User

bone_attach

a guest
Aug 2nd, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. script_serverside = true
  2. data_sent = {}
  3.  
  4. function sendAttachmentData()
  5.     if data_sent[client] then return end
  6.     triggerClientEvent(client,"boneAttach_sendAttachmentData",root,
  7.         attached_ped,
  8.         attached_bone,
  9.         attached_x,
  10.         attached_y,
  11.         attached_z,
  12.         attached_rx,
  13.         attached_ry,
  14.         attached_rz
  15.     )
  16.     data_sent[client] = true
  17. end
  18. addEvent("boneAttach_requestAttachmentData",true)
  19. addEventHandler("boneAttach_requestAttachmentData",root,sendAttachmentData)
  20.  
  21. function removeDataSentFlag()
  22.     data_sent[source] = nil
  23. end
  24. addEventHandler("onPlayerQuit",root,removeDataSentFlag)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement