Jump to content

1 Screenshot

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

  • Like 5

User Feedback

Recommended Comments

Joshua

Posted

pog champ! @Ahmed you're a legend!

  • Like 1
Micr0

Posted

Looking forward to try, however it would be awesome if you would provide git repository, that would open possibility for some open source contribution and in general would be more devs friendly 👍

Ahmed

Posted

The only reason I didn't post to Github because its just one file. But I'll try to make a repo anyways :)

  • Like 1
Micr0

Posted

Yeah, kind a fair point, but still closes some possibilities for contribution. Anyway, just tried it out, awesome stuff. Was looking for some tool to start trying out spawning objects and you guys with this thing were sooo on time. Huge thanks!

Ahmed

Posted

23 hours ago, Micr0 said:

Yeah, kind a fair point, but still closes some possibilities for contribution. Anyway, just tried it out, awesome stuff. Was looking for some tool to start trying out spawning objects and you guys with this thing were sooo on time. Huge thanks!

https://github.com/Ahmad45123/ragemp-objecteditor

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...