setPedPrimaryLookat
SET_PED_PRIMARY_LOOKAT0xCD17B554996A8D9EThe GTA V native SET_PED_PRIMARY_LOOKAT of the PED namespace, as LS:MP client scripts call it: the global function setPedPrimaryLookat, in JavaScript and in Lua.
setPedPrimaryLookat(ped: Ped, lookAt: Ped): voidsetPedPrimaryLookat(ped: Ped, lookAt: Ped)Usage
JavaScript
setPedPrimaryLookat(ped, lookAt);Lua
setPedPrimaryLookat(ped, lookAt)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
lookAt | Ped | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
This is only called once in the scripts.
sub_1CD9(&l_49, 0, getElem(3, &l_34, 4), "MICHAEL", 0, 1);
sub_1CA8("WORLD_HUMAN_SMOKING", 2);
setPedPrimaryLookat(getElem(3, &l_34, 4), playerPedId());Reference
- Namespace
- Ped PED
- In the game
void SET_PED_PRIMARY_LOOKAT(Ped ped, Ped lookAt)- Hash
0xCD17B554996A8D9E