SPS:getProperties

From Multi Theft Auto: Wiki
Revision as of 11:17, 7 June 2019 by Shux (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 example

This 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
)