Objects

Used to register and remove object spawning, from peds to vehicles.

circle-info

Client Module - This can only be used on the client

lib.objects.register

Create a new object

lib.objects.register(name, new_data)
Parameter
Type
Required
Description

name

String

Unique reference for object

new_data

Object

Options for the object, refer to Data Structure

lib.objects.get

Get information regarding an object

local obj = lib.objects.get(name)
Parameter
Type
Required
Description

id

String

Unique reference for the object

lib.objects.destroy

Completely remove an object

lib.object.destroy(id)
Parameter
Type
Required
Description

id

String

Unique reference for the object

Data Structure

This is the data structure of an object and the valid options

Last updated