RedM Natives

ENABLE_DISPATCH_SERVICE

DT_Invalid, DT_PoliceAutomobile, DT_PoliceHelicopter, DT_FireDepartment, DT_SwatAutomobile, DT_AmbulanceDepartment, DT_PoliceRiders, DT_PoliceVehicleRequest, DT_PoliceRoadBlock, DT_PoliceAutomobileWaitPulledOver, DT_PoliceAutomobileWaitC…

Hash0x50E52637EF70EF77
Runtime nameEnableDispatchService
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xDC0F817884CDD856

Signature

void ENABLE_DISPATCH_SERVICE(int dispatchService, BOOL toggle);

Parameters

NameTypeDescription
dispatchServiceint—
toggleBOOL—

Returns void

Description

enum DispatchType
{
	DT_Invalid,
	DT_PoliceAutomobile,
	DT_PoliceHelicopter,
	DT_FireDepartment,
	DT_SwatAutomobile,
	DT_AmbulanceDepartment,
	DT_PoliceRiders,
	DT_PoliceVehicleRequest,
	DT_PoliceRoadBlock,
	DT_PoliceAutomobileWaitPulledOver,
	DT_PoliceAutomobileWaitCruising,
	DT_Gangs,
	DT_SwatHelicopter,
	DT_PoliceBoat,
	DT_ArmyVehicle,
	DT_OnFoot,
	DT_PoliceDogs
};

Usage

Lua
EnableDispatchService(dispatchService, toggle)

-- always works, by hash
Citizen.InvokeNative(0x50E52637EF70EF77, dispatchService, toggle)
JavaScript and C#
JavaScript
EnableDispatchService(dispatchService, toggle);

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

Sources

alloc8or RDR3 NativeDB

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