The Lab
PED native

_SET_PED_SCENT

returns void2 paramsbuild 1207

Sets how strongly ped can be smelled by animals.

Signature

C
void _SET_PED_SCENT(Ped ped, float scent); // 0x01B21B81865E2A1F b1207

Parameters

#NameType
1pedPed
2scentfloat

Facts

Facts about _SET_PED_SCENT
Name
_SET_PED_SCENT
Hash
0x01B21B81865E2A1F
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x01B21B81865E2A1F, -- _SET_PED_SCENT
  PlayerPedId(), -- Ped ped
  0.0 -- float scent
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x01B21B81865E2A1F", // _SET_PED_SCENT
  PlayerPedId(), // Ped ped
  0.0 // float scent
);
C#
Function.Call((Hash)0x01B21B81865E2A1F, // _SET_PED_SCENT
  API.PlayerPedId(), // Ped ped
  0.0f // float scent
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.