Skip to main content

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

lib.callback('op-vehlock:getVehState', false, function(isLocked)
if isLocked then
-- Plate is locked
else
-- Plate is unlocked
end
end, plate)