View Issue Details
|Grand Theft Auto IV
|0000464: natives.getPlayerChar(id) only works on self.
It'd be very useful if we were able to get the handle of another player in the same session. However, it only ever returns a handle if the id you supply the argument with is your own player ID. (natives.getPlayerId())
You cannot grab the handle of a networked player. This is an issue.
(Possibly related to my previous issues regarding player ID's allocating backwards.)
|No tags attached.
Which native are you needing another player's handle for?
I highly recommend using GTAC's scripting functions for elements. Natives are only meant to be a stop-gap for things we haven't added to the main scripting API.