RedM Natives

TOGGLE_SCENARIO_PED_COWER_IN_PLACE

If toggle is true, when the ped is using a scenario he will stop it and become scared If toggle is false, the ped will not be scared anymore and continue his scenario Old name: _SET_PED_SCARED_WHEN_USING_SCENARIO

Hash0x9A77DFD295E29B09
Runtime nameToggleScenarioPedCowerInPlace
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x9A77DFD295E29B09

Signature

void TOGGLE_SCENARIO_PED_COWER_IN_PLACE(Ped ped, BOOL toggle);

Parameters

NameTypeDescription
pedPed—
toggleBOOL—

Returns void

Description

If toggle is true, when the ped is using a scenario he will stop it and become scared
If toggle is false, the ped will not be scared anymore and continue his scenario

Old name: _SET_PED_SCARED_WHEN_USING_SCENARIO

Usage

Lua
ToggleScenarioPedCowerInPlace(ped, toggle)

-- always works, by hash
Citizen.InvokeNative(0x9A77DFD295E29B09, ped, toggle)
JavaScript and C#
JavaScript
ToggleScenarioPedCowerInPlace(ped, toggle);

// by hash
Citizen.invokeNative('0x9A77DFD295E29B09', ped, toggle);
C#
Function.Call((Hash)0x9A77DFD295E29B09, ped, toggle);

Sources

alloc8or RDR3 NativeDB

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