_SET_PED_SCENT
Modifies the "scent line" on the ped's body when using Eagle Eye.
Hash
0x01B21B81865E2A1FRuntime name
SetPedScentNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_PED_SCENT(Ped ped, float scent);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
scent | float | — |
Returns void
Description
0.0 - 1.0
Modifies the "scent line" on the ped's body when using Eagle Eye.
Usage
SetPedScent(ped, scent)
-- always works, by hash
Citizen.InvokeNative(0x01B21B81865E2A1F, ped, scent)JavaScript and C#
SetPedScent(ped, scent);
// by hash
Citizen.invokeNative('0x01B21B81865E2A1F', ped, scent + 0.0000001);Function.Call((Hash)0x01B21B81865E2A1F, ped, scent);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason. - The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.