SET_PED_AS_COP
Turns the desired ped into a cop.
Hash
0xBB03C38DD3FB7FFDRuntime name
SetPedAsCopNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xBB03C38DD3FB7FFDSignature
void SET_PED_AS_COP(Ped ped, BOOL toggle);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
toggle | BOOL | — |
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
SetPedAsCop(ped, toggle)
-- always works, by hash
Citizen.InvokeNative(0xBB03C38DD3FB7FFD, ped, toggle)JavaScript and C#
SetPedAsCop(ped, toggle);
// by hash
Citizen.invokeNative('0xBB03C38DD3FB7FFD', ped, toggle);Function.Call((Hash)0xBB03C38DD3FB7FFD, ped, toggle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.