RedM Natives

SET_PED_AS_COP

Turns the desired ped into a cop.

Hash0xBB03C38DD3FB7FFD
Runtime nameSetPedAsCop
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xBB03C38DD3FB7FFD

Signature

void SET_PED_AS_COP(Ped ped, BOOL toggle);

Parameters

NameTypeDescription
pedPed—
toggleBOOL—

Returns void

Description

Turns the desired ped into a cop. If you use this on the player ped, you will become almost invisible to cops dispatched for you. You will also report your own crimes, get a generic cop voice, get a cop-vision-cone on the radar, and you will be unable to shoot at other cops. Toggling ped as "false" has no effect; you must change p0's ped model to disable the effect.
toggle = bSetRelGroup

Usage

Lua
SetPedAsCop(ped, toggle)

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

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

Sources

alloc8or RDR3 NativeDB

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