DE/isObjectBreakable

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

Beispiel

Click to collapse [-]
Client

Dieses Beispiel erstellt ein Objekt, wenn die Resource startet und überprüft, ob es zerbrechlich ist. (GETESTET!)

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")
	end
end)

Siehe auch

Shared