engineResetSurfaceProperties | Multi Theft Auto: Wiki Skip to content

engineResetSurfaceProperties

Client-side
Server-side
Shared
Needs checking

This function was partially migrated from the old wiki. Please review manually:

  • Missing section: Properties
  • Missing section: Materials, surfaces properties

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function resets a surface property to its default value. If no ID is provided, it will reset all surfaces' properties to their original values.

Syntax

mixed engineResetSurfaceProperties ( int surfaceID )
Required Arguments
  • surfaceID: Material ID from 0 to 178

Returns

  • mixed: value

Returns true if the function executed succesfully, false otherwise.

Code Examples

shared

This will reset anySurface Propertiesfor id:5

local surfaceID = 5 -- the material ID to reset properties
local success = engineResetSurfaceProperties(surfaceID)
if success then
outputChatBox("Surface properties reset successfully.")
else
outputChatBox("Invalid surface ID or error occurred.")
end

See Also

Engine Functions
Engine Elements