mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Add breakObject to server-side

Open FileEX opened this issue 1 year ago • 0 comments

This PR adds the breakObject function also on the server side, making it available as a shared function

local object

addCommandHandler('obj', function(plr,cmd)
	local x,y,z = getElementPosition(plr);
	object = createObject(1226, x,y,z);
end);

addCommandHandler('objb', function(plr)
	breakObject(object);
end);

FileEX avatar May 02 '24 00:05 FileEX