Welcome! Here you can paste sources and general debugging text, You can even set yourself a password if you want to keep it just for yourself.

Posted by Anonymous on January Thu 22nd 9:57 AM - Never Expires
Download | New paste

  1. -- Client Side --
  2.  
  3. local x, y, z = getPedBonePosition(localPlayer, 8)
  4. weapon = createWeapon("Sniper", x, y, z+1)
  5.  
  6. bindKey("x", "down",
  7. function()
  8.         local x, y, z = getPedBonePosition(localPlayer, 8)
  9.         setWeaponTarget(weapon, x, y, z)
  10.         fireWeapon(weapon)
  11. end)
  12.  
  13. addEventHandler("onClientPlayerDamage", localPlayer,
  14. function()
  15.         outputChatBox("Client: Hit")
  16. end)
  17.  
  18.  
  19. -- Server Side --
  20.  
  21. addEventHandler("onPlayerDamage", root,
  22. function()
  23.         outputChatBox("Server: Hit")
  24. end)
Language:
To highlight particular lines, prefix each line with @@





© 2021 - Powered by PASTE 1.0