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

This page is incomplete! Help wanted!

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

engineResetSurfaceProperties ( )

Code Examples

client

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