getPlayerPedIsFollowing
GET_PLAYER_PED_IS_FOLLOWING0x6A3975DEA89F9A17The GTA V native GET_PLAYER_PED_IS_FOLLOWING of the PED namespace, as LS:MP client scripts call it: the global function getPlayerPedIsFollowing, in JavaScript and in Lua.
getPlayerPedIsFollowing(ped: Ped): PlayergetPlayerPedIsFollowing(ped: Ped): PlayerUsage
JavaScript
const player = getPlayerPedIsFollowing(ped);Lua
local player = getPlayerPedIsFollowing(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
Player JavaScript number, Lua integerThe game's own player index: a local slot, as playerId() returns it. Not an LS:MP playerId.
Reference
- Namespace
- Ped PED
- In the game
Player GET_PLAYER_PED_IS_FOLLOWING(Ped ped)- Hash
0x6A3975DEA89F9A17