Your scripts call one function, and TS-Lib routes it to
qb-vehiclekeys, qs-vehiclekeys or a standalone implementation.
Status & testing
Supported key systems
TS-Lib ships with support for:qb-vehiclekeysqs-vehiclekeyslfKeysstandalone(no external keys resource)
ts-lib/config.lua:
Config.VehicleKeys = 'auto', TS-Lib selects the first started resource from Config.Data.VehicleKeys.
Client-side API
Bridge.VehicleKeys.Client.Functions.SetDoorStatus(entity, lockStatus)
This is the main entrypoint you will use from your scripts.
1– unlocked2– locked4– locked for all players, etc.
Behavior per system
-
qb-vehiclekeys -
qs-vehiclekeys -
lfKeys -
standalone
Server-side API
Right now TS-Lib does not expose additional server-side helpers for keys.The server bridge (
Bridge.VehicleKeys.Server) is kept as a placeholder for future extensions:
- Centralized key granting/revoking
- Permission-aware lock/unlock operations
- Auditing of lock events