Mennims
Active member
- Joined
- Mar 18, 2014
- Messages
- 41
- Reaction score
- 0
Code:
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
Codex1337 said:It returns player handle (1@) and car handle (0@) and that's not the IDs.
About showing 'D', open Sannybuilder, press F10, click on "Formats" then check on "As is" and recompile the script, it will return "player handle" in integers.
Codex1337 said:Try adding this condition (if) "Actor.Define(1@)", if it still returns -1 value then you need to create your own function for it.
Here's a snippet by Opcode.eXe which returns "all" player handles, you can modify according to your needs.
http://ugbase.eu/Thread-SNIPPET-For-All-Peds
If you are still unable to do it, hit me up on PM with your code.