For the complete documentation index, see llms.txt. This page is also available as Markdown.

Exports

connectCamera(identifier)

Use this export to connect to a camera using its identifier

params:

  • identifier:string Camera identifier

local identifier = "abcdefg12345"
exports['av_cameras']:connectCamera(identifier)

getClosestCameras()

Retrieves a table of cameras currently rendered around player.

returns:

  • owner:string Camera owner, could be server or a player identifier.

  • settings:table A table with current camera settings

  • coords:table Camera coords, view coords, rotation, etc.

  • item:string Item used to place the camera

  • identifier:string Camera identifier

  • label:string Camera label

  • location:string Cam location label

local cameras = exports['av_cameras']:getClosestCameras()
print(json.encode(cameras, {indent = true}))

getCamerasFromCoords(coords?,radius?)

Retrieves a list of cameras close to coords.

params:

  • coords?:vector3(x,y,z) World coords or null to use current player coords.

  • radius?:number Radius or null to use default 50.0

camera data structure

Last updated