Skip to content
GAMPEONCreate
New project
Preview: this works today, but details can still change.

Types

Returned by AddEventHandler and RegisterNetEvent.

Field Type Description
key integer Internal ID of the handler.
name string Name of the event.

Read-only vector with 2 components. Supports + - * /, # (length) and swizzles like v.xy.

Field Type Description
x number x component.
y number y component.

Read-only vector with 3 components. Supports + - * /, # (length) and swizzles like v.xy.

Field Type Description
x number x component.
y number y component.
z number z component.

Read-only vector with 4 components. Supports + - * /, # (length) and swizzles like v.xy.

Field Type Description
x number x component.
y number y component.
z number z component.
w number w component.

Result that arrives later. Use p:resolve(…), p:reject(err), p:next(onResolved, onRejected) and Citizen.Await(p).

Field Type Description
resolve fun(self: promise, ...: any) Fulfil the promise with values.
reject fun(self: promise, err: any) Fail the promise.
next fun(self: promise, onResolved?: function, onRejected?: function): promise Run a function when it is done.

Report a problem with this pageOther ways to give feedback