Trunk Lock System
Exports
Client

Client Exports

CheckCanOpenTrunk(vehicle, cb) -> void — async access check. Calls cb(boolean) with the result.

exports['trunk_lock']:CheckCanOpenTrunk(vehicle, function(canOpen)
    if canOpen then
        -- open trunk UI
    else
        -- show your custom message
    end
end)

canOpenTrunk(vehicle) -> boolean — synchronous access check (waits for server callbacks). Available only when Config.UseOxInventory = true.

if exports['trunk_lock']:canOpenTrunk(vehicle) then
    -- open trunk UI
end