isObjectBreakable
Client-side
Server-side
Shared
Pair: setObjectBreakable
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 checks if an object / model ID is breakable.
Syntax
isObjectBreakable ( )Code Examples
server
This example creates an object when the resource starts and checks if the object is breakable.
addEventHandler("onClientResourceStart", resourceRoot, function() local object = createObject(1337, 5540.6654, 1020.55122, 1240.545) if isObjectBreakable(object) then outputChatBox("Yes, the object is breakable.") else outputChatBox("No, the object is not breakable") endend)