RedM Natives

_SET_PED_COMBAT_SPEED

Sets the ped combat speed enum.

Hash0x815C0074A1BC0D93
Runtime nameSetPedCombatSpeed
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_PED_COMBAT_SPEED(Ped ped, int speed);

Parameters

NameTypeDescription
pedPed—
speedint—

Returns void

Description

alloc8or RDR3 NativeDB

Sets the ped combat speed enum. Get/set pair with _GET_PED_COMBAT_SPEED.

enum CCombatData__Speed
{
	CS_Invalid = -1,
	CS_Default = 0,
	CS_Slow = 1,
	CS_Fast = 2,
	CS_Sprint = 3,
	CS_LastSpeed = 4,
};

VORPCORE RDR3natives

_SET_PED_COMBAT_R - _SET_PED_C*

Usage

Lua
SetPedCombatSpeed(ped, speed)

-- always works, by hash
Citizen.InvokeNative(0x815C0074A1BC0D93, ped, speed)
JavaScript and C#
JavaScript
SetPedCombatSpeed(ped, speed);

// by hash
Citizen.invokeNative('0x815C0074A1BC0D93', ped, speed);
C#
Function.Call((Hash)0x815C0074A1BC0D93, ped, speed);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

See also

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.