engineSetSurfaceProperties | Multi Theft Auto: Wiki Skip to content

engineSetSurfaceProperties

Client-side
Server-side
Shared

Pair: engineGetSurfaceProperties

This function changes a property of a surface.

Syntax

bool engineSetSurfaceProperties ( ​int surfaceID, ​string property, ​var value )
Required Arguments

Returns

  • bool: result

Returns true if the function executed succesfully, false otherwise.

Code Examples

client

This will disable the smoke for the wheels when going on the surfaces with the id below:

addCommandHandler("weffect", function()
for i = 9, 14 do
engineSetSurfaceProperties(i, "wheeleffect", "disabled")
end
end)

See Also

Engine Functions