The Lab
PED native

SET_COMBAT_FLOAT

returns void3 paramsbuild 1207

Sets the combat float setting combatType of ped to newValue.

Signature

C
void SET_COMBAT_FLOAT(Ped ped, int combatType, float newValue); // 0xFF41B4B141ED981C b1207

Parameters

#NameType
1pedPed
2combatTypeint
3newValuefloat

Facts

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

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