https://github.com/ahmad45123/ragemp-objecteditor
https://github.com/ahmad45123/ragemp-objecteditor
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ahmad45123/ragemp-objecteditor
- Owner: Ahmad45123
- License: mit
- Created: 2020-04-20T10:09:03.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-20T19:30:08.000Z (about 5 years ago)
- Last Synced: 2025-03-26T16:55:06.399Z (3 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MC-RP Object Editor
This is a public release of the object editor used on the Mafia City Roleplay server.# Usage:
Clientside:
```js
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;
}
})
```