Skip to content

scriptObjectUpdated

Tells your gamemode that one of its objects changed after a transform, attachment or material edit, a completed move, or the loss of an attachment target. The snapshot is available in objects.getById when the handler runs. Changes during gamemode startup update the snapshot without calling the handler.

server.on("scriptObjectUpdated", ({ object }) => void)
Name Type Description
object ScriptObject An object was edited or finished moving.
gamemodes/my-mode.ts
import { server } from "nativemp";
server.on("scriptObjectUpdated", ({ object }) => {
server.log(`Object editing event for ID ${object.id}`);
});