RedM Natives

SET_VEHICLE_ALARM

SET_VEHICLE_ALARM This is the server-side RPC native equivalent of the client native SET_VEHICLE_ALARM.

Hash0x24877D84
Runtime nameSetVehicleAlarm
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void SET_VEHICLE_ALARM(Vehicle vehicle, BOOL state);

Parameters

NameTypeDescription
vehicleVehicle—
stateBOOL—

Returns void

Description

Cfx.re native reference

SET_VEHICLE_ALARM

This is the server-side RPC native equivalent of the client native SET_VEHICLE_ALARM.

Usage

Lua
SetVehicleAlarm(vehicle, state)

-- always works, by hash
Citizen.InvokeNative(0x24877d84, vehicle, state)
JavaScript and C#
JavaScript
SetVehicleAlarm(vehicle, state);

// by hash
Citizen.invokeNative('0x24877d84', vehicle, state);
C#
Function.Call((Hash)0x24877d84, vehicle, state);

Sources

Cfx.re native reference

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