getVehState
getVehState is an ox_lib callback function, it may be used in all sorts of functions to check the state of a plate.
plate: string
- Callback
- Await
lib.callback('op-vehlock:getVehState', false, function(isLocked)
if isLocked then
-- Plate is locked
else
-- Plate is unlocked
end
end, plate)
local isLocked = lib.callback.await('op-vehlock:getVehState', false, plate)
if isLocked then
-- Plate is locked
else
-- Plate is unlocked
end