The Lab
PED native

_GIVE_PED_HASH_COMMAND

returns void3 paramsbuild 1207

Gives ped the hash command commandHash, active for activationDuration.

Signature

C
void _GIVE_PED_HASH_COMMAND(Ped ped, Hash commandHash, float activationDuration); // 0xD65FDC686A031C83 b1207

Parameters

#NameType
1pedPed
2commandHashHash
3activationDurationfloat

Facts

Facts about _GIVE_PED_HASH_COMMAND
Name
_GIVE_PED_HASH_COMMAND
Hash
0xD65FDC686A031C83
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(0xD65FDC686A031C83, -- _GIVE_PED_HASH_COMMAND
  PlayerPedId(), -- Ped ped
  GetHashKey("name"), -- Hash commandHash
  0.0 -- float activationDuration
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xD65FDC686A031C83", // _GIVE_PED_HASH_COMMAND
  PlayerPedId(), // Ped ped
  GetHashKey("name"), // Hash commandHash
  0.0 // float activationDuration
);
C#
Function.Call((Hash)0xD65FDC686A031C83, // _GIVE_PED_HASH_COMMAND
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("name"), // Hash commandHash
  0.0f // float activationDuration
);
All PED natives

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