View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000464 | Client/Game | Grand Theft Auto IV | public | 2023-02-03 13:05 | 2023-02-03 14:59 |
Reporter | dwaoiawdouo8u | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | x64 | OS | Windows | OS Version | 10 |
Product Version | 1.5.1 | ||||
Summary | 0000464: natives.getPlayerChar(id) only works on self. | ||||
Description | 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.) | ||||
Tags | No tags attached. | ||||
Game | |||||
|
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.
|
Date Modified | Username | Field | Change |
---|---|---|---|
2023-02-03 13:05 | dwaoiawdouo8u | New Issue | |
2023-02-03 14:55 | Vortrex | Note Added: 0000344 | |
2023-02-03 14:59 | Vortrex | Note Added: 0000345 |