OPX//77
opx_infinityhauling

Server

Last updated on

The hauling contract on the server — crate counts and who is carrying.

local hauling = OPX.Api.Get('hauling')

From server code inside opx_infinity.

State

Crates per usable site.

hauling.State()

Returns

  • Result — value { sites, total }
    • sites[key]: { standing, claimed, carried } for every usable site
    • total: crates in the world

IsCarrying

Whether a player has a crate attached right now. Not a Result.

hauling.IsCarrying(player)

Parameters

  • player: number

Returns

  • boolean
Example
if hauling.IsCarrying(source) then return end

On this page