About This File
This is a public release of the object editor used on the Mafia City Roleplay server.
Usage client-side:
let obj = mp.objects.new(mp.game.joaat(model), new mp.Vector3(position.x, position.y, position.z));
mp.events.call('objecteditor:start', obj.id);
mp.events.add('objecteditor:finish', (objId, pos, rot) => {
if(obj.id == objId) {
// send pos and rot to server and save or do whatever.
return;
}
});
Github Link: https://github.com/Ahmad45123/ragemp-objecteditor
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now