Events / Exports

All events and exports are for client

Client

OpenGarage

exports["tgiann-realparking"]:OpenGarage(garageKey, slotIndex, isCustom)
Name
Type
Description

garageKey

string

Uniq garage name

slotIndex

number

Slot number

isCustom

boolean

Is custom garage

Example

exports["tgiann-realparking"]:OpenGarage("pd_normal_1", 2, false)
-- Example for housing garage
exports["tgiann-realparking"]:OpenGarage("my_house", 1, true)

ParkGarage

exports["tgiann-realparking"]:ParkGarage(garageKey, slotIndex, isCustom)
Name
Type
Description

garageKey

string

Uniq garage name

slotIndex

number

Slot number

isCustom

boolean

Is custom garage

Example


Server

ChangedVehiclePlate

You can use this export to update the garage data when the license plate of the vehicle changes.

Name
Type
Description

oldplate

string

Old plate

newPlate

string

New plate

Example


GetInsurance

returns the vehicle's insurance data.

Name
Type
Description

plate

string

Plate

Example


IsVehicleParkedAnyGarage

returns the vehicle's insurance data.

Name
Type
Description

plate

string

Plate

Example

Last updated