Skip to main content

getKeysOnPlate

getKeysOnPlate is an ox_lib callback function, it may be used in all sorts of functions to check what keys are registered to a plate

plate: string

lib.callback('op-vehlock:getKeysOnPlate', false, function(Keys)
if #Keys > 0 then
-- there are keys and returns array
--[[
Keys = {
{
plate = string,
identifier = string,
key_combo = string
}, ...
}
]]
else
-- no keys registered to this plate
end
end, plate)