nolag_properties
if not GetResourceState('nolag_properties') == 'started' then return end
Property = {
---@param stateid string
---@return table A list of properties with keys: value, label, coords<optional>
GetPlayerProperties = function(stateid)
local result = exports.nolag_properties:GetAllProperties(stateid, 'user', true)
if not result or #result == 0 then
prints.error('Properties not found for stateid: %s', stateid)
return {}
end
for id, property in pairs(result) do
result[id].value = property.id
end
return result
end
}
Last updated
Was this helpful?