Object.Remove
From Liberty Unleashed Wiki
This Object class member removes the given object.
Syntax
bool object.Remove()
Example
This will remove object ID 0 when the player types '/remove'
function onPlayerCommand( pPlayer, szCommand, szText ) { if ( szCommand == "remove" ) { local pObject = FindObject( 0 ); if ( pObject ) pObject.Remove(); } return 1; }
Notes
The function FindObject and event onPlayerCommand were used in this example. More info about them in the corresponding pages.