Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Instead of VEHICLE::GET_CLOSEST_VEHICLE, use something like this: http://pastebin.com/xiFdXa7h
- ---------------------------------
- Found flags found in the b617d scripts for VEHICLE::GET_CLOSEST_VEHICLE:
- 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:
- 00000000000000000 = 0 - Only returns cars and motorbikes. Often returns vehicle already inside. Otherwise only return empty vehicles.
- 00000000000000010 = 2 - Only empty vehicles. Only returns cars and motorbikes.
- 00000000000000100 = 4 - Works like 70. During the testing, this one worked the best i.e. for cars and motorbikes
- 00000000000000110 = 6 - Works like 70.
- 00000000000000111 = 7 - Works like 70.
- 00000000000010111 = 23 - Only finds cars when not inside one.
- 00000000001000110 = 70 - (Not from scripts. Recommended by the native db). Only works with motorbikes and cars.
- 00000000001111111 = 127 - While inside cars or motorbikes, nothing can be found. On foot or inside heli cars can be found.
- 00000000100000100 = 260 - Works like 70.
- 00000100001100010 = 2146
- 00000100001111111 = 2175
- 00011000000000110 = 12294
- 00100000000000000 = 16384
- 00100000000000010 = 16386
- 00101000000010111 = 20503
- 01000000000000000 = 32768
- 10000100000000110 = 67590
- 10000100001111111 = 67711 - Finds cars when inside heli, not when inside cars.
- 11000000000000101 = 98309
- 11000100000000111 = 100359 - Works like 70 but returns the vehicle the player already is in quite often.
- 11111111111111111 = 131071 - Not from the scripts. Nothing seems to work when testing.
- 00100000000000000 = 16384 - returns planes only.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement