Advertisement
Guest User

SA-MP NPC File Structure by Sasuke78200

a guest
Sep 19th, 2011
604
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. NPC_FILE_VERSION = 0x03E8;
  2. NPC_RECORD_TYPE_INVEHICLE = 0x0001;
  3. NPC_RECORD_TYPE_ONFOOT = 0x0002;
  4.  
  5. * File NPC structure
  6.  
  7. 4 bytes - File version
  8. 4 bytes - Record type
  9.  
  10. * Record Type in vehicle
  11.  
  12. 2 bytes - Vehicle id
  13. 2 bytes - Left right keys
  14. 2 bytes - Up down keys
  15. 2 bytes - Keys
  16. Quaternion - Vehicle rotation
  17. 12 bytes - Vehicle position
  18. 12 bytes - Vehicle velocity
  19. 4 bytes - Vehicle health
  20. 1 byte - Player Health
  21. 1 byte - Player Armor
  22. 1 byte - Player Weapon
  23. 1 byte - Vehicle siren type
  24. 1 byte - Vehicle gear state
  25. 2 bytes - Vehicle trailer id
  26. 4 bytes - Time at first writing sub this time
  27.  
  28. * Record type on foot
  29.  
  30. 2 bytes - Left right keys
  31. 2 bytes - Up down keys
  32. 2 bytes - Keys
  33. 12 bytes - Position
  34. Quaternion - Rotation
  35. 1 byte - Health
  36. 1 byte - Armor
  37. 1 byte - Weapon
  38. 1 byte - Special action
  39. 12 bytes - Velocity
  40. 12 bytes - Surfing offsets
  41. 2 bytes - Surfing ID (0 - 1999 for vehicles, 2000 - 2399 for objects)
  42. 4 bytes - Animation index
  43. 4 bytes - Time at first writing sub this time
  44.  
  45.  
  46. Written by Sasuke78200 a.k.a Ssk.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement