_SET_PED_COMBAT_SPEED
Sets the ped combat speed enum.
Hash
0x815C0074A1BC0D93Runtime name
SetPedCombatSpeedNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_PED_COMBAT_SPEED(Ped ped, int speed);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
speed | int | — |
Returns void
Description
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,
};_SET_PED_COMBAT_R - _SET_PED_C*
Usage
SetPedCombatSpeed(ped, speed)
-- always works, by hash
Citizen.InvokeNative(0x815C0074A1BC0D93, ped, speed)JavaScript and C#
SetPedCombatSpeed(ped, speed);
// by hash
Citizen.invokeNative('0x815C0074A1BC0D93', ped, speed);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
InvokeNativewith the hash — it always works.
See also
_GET_PED_COMBAT_SPEEDGets the ped combat speed enum.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.