Trunk Lock System
Events
Server

Server Events

  • trunk_lock:server:installLock — installs a lock on the given plate after ownership and item checks.
  • trunk_lock:server:removeLock — removes a lock from the given plate.
  • trunk_lock:server:checkVehicleOwner — checks ownership for a plate and replies with trunk_lock:client:ownershipResult.

Example:

TriggerServerEvent('trunk_lock:server:removeLock', plate)

Server Callbacks

  • trunk_lock:server:hasTrunkLock(plate) — returns true if the vehicle has a lock.
  • trunk_lock:server:isVehicleOwner(plate) — returns true if the player owns the vehicle.