engineGetObjectGroupPhysicalProperty | Multi Theft Auto: Wiki Skip to content

engineGetObjectGroupPhysicalProperty

Client-side
Server-side
Shared

Pair: engineSetObjectGroupPhysicalProperty

This function gets physical property of given properties group.

OOP Syntax Help! I don't understand this!

  • Method:Engine.getObjectGroupPhysicalProperty(...)

Syntax

​var engineGetObjectGroupPhysicalProperty ( ​int groupID, ​string property )
Required Arguments
  • groupID: The id of physical properties group (in range 0-159) which you wish to get a property from.
  • property: The property which you wish to get. See physical properties.

Returns

  • var: property value

Returns the value contained in given property if everything went well, error is raised otherwise.

Code Examples

client
function getProperty(_, group, property)
local prop = {engineGetObjectGroupPhysicalProperty(tonumber(group), property)}
outputConsole(inspect(prop))
end
addCommandHandler("getProperty", getProperty)
-- /getProperty 120 special_col_response

See Also

Engine Functions