Advertisement
R3QQ

VEHICLE::GET_CLOSEST_VEHICLE - found flags in binary

Feb 12th, 2016
6,107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. Instead of VEHICLE::GET_CLOSEST_VEHICLE, use something like this: http://pastebin.com/xiFdXa7h
  2. ---------------------------------
  3. Found flags found in the b617d scripts for VEHICLE::GET_CLOSEST_VEHICLE:
  4.  
  5. Converted to binary, each bit probably represents a flag as explained regarding another native here: gtaforums.com/topic/822314-guide-driving-styles. Using the coords of the player when testing below. These are not results of extensive testing but gives a hint:
  6.  
  7. 00000000000000000 = 0 - Only returns cars and motorbikes. Often returns vehicle already inside. Otherwise only return empty vehicles.
  8. 00000000000000010 = 2 - Only empty vehicles. Only returns cars and motorbikes.
  9. 00000000000000100 = 4 - Works like 70. During the testing, this one worked the best i.e. for cars and motorbikes
  10. 00000000000000110 = 6 - Works like 70.
  11. 00000000000000111 = 7 - Works like 70.
  12. 00000000000010111 = 23 - Only finds cars when not inside one.
  13. 00000000001000110 = 70 - (Not from scripts. Recommended by the native db). Only works with motorbikes and cars.
  14. 00000000001111111 = 127 - While inside cars or motorbikes, nothing can be found. On foot or inside heli cars can be found.
  15. 00000000100000100 = 260 - Works like 70.
  16. 00000100001100010 = 2146
  17. 00000100001111111 = 2175
  18. 00011000000000110 = 12294
  19. 00100000000000000 = 16384
  20. 00100000000000010 = 16386
  21. 00101000000010111 = 20503
  22. 01000000000000000 = 32768
  23. 10000100000000110 = 67590
  24. 10000100001111111 = 67711 - Finds cars when inside heli, not when inside cars.
  25. 11000000000000101 = 98309
  26. 11000100000000111 = 100359 - Works like 70 but returns the vehicle the player already is in quite often.
  27. 11111111111111111 = 131071 - Not from the scripts. Nothing seems to work when testing.
  28.  
  29. 00100000000000000 = 16384 - returns planes only.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement