Server Events

This page will explain all server events from the SonoranCAD Core that can be used on the server side

sonorancad::registerVeh

This event will register the vehicle the player is in, to their most recent CAD civilian character. This event requires the VehReg submodule to be enabled

TriggerServerEvent('sonorancad::registerVeh', primary, plate, class, realName)
Name
Type
Description

primary

string

The primary color of the vehicle

plate

string

The vehicle's license plate

class

string

The vehicles class. Please see Example Usage for how to get the class to a string

realName

string

The display name of the vehicle.

SonoranCAD::pushevents:RecordAdded

Event fired in the event of a record created in SonoranCAD

RegisterNetEvent("SonoranCAD::pushevents:RecordAdded", function(record)
    print(json.encode(record)
end)

SonoranCAD::pushevents:RecordEdited

Event fired in the event of a record edit in SonoranCAD

RegisterNetEvent("SonoranCAD::pushevents:RecordEdited", function(record)
    print(json.encode(record)
end)

SonoranCAD::pushevents:RecordRemoved

Event fired in the event of a record deletion in SonoranCAD

SonoranCAD::pushevents:CommunityLinkVerified

Event fired when a player completes the CAD link code flow and the active game server receives the websocket push event immediately.

This event can be used to close link UI immediately and treat periodic link polling as a backup instead of the primary signal.

Last updated

Was this helpful?