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 withtrunk_lock:client:ownershipResult.
Example:
TriggerServerEvent('trunk_lock:server:removeLock', plate)Server Callbacks
trunk_lock:server:hasTrunkLock(plate)— returnstrueif the vehicle has a lock.trunk_lock:server:isVehicleOwner(plate)— returnstrueif the player owns the vehicle.