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

Add isObjectMoving to server side

Open FileEX opened this issue 1 year ago • 0 comments

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

Test server-side code

local object

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

	moveObject(object, 20*1000, 0,0,5);
end);

addCommandHandler('objm', function(plr,cmd)
	print(isObjectMoving(object));
end);

FileEX avatar May 01 '24 16:05 FileEX