SPS:getProperties
Jump to navigation
Jump to search
This function is used to retrieve all property elements.
Syntax
table getProperties()
Returns
Returns all property elements.
Example
Click to collapse [-]
Serverside exampleThis example script outputs all property IDs to the chat.
addEventHandler("onResourceStart",root, function() local properties = getProperties() for i,property in ipairs(properties) do outputChatBox("ID: "..getPropertyID(property)) end end )