Stuyk / altv-athena

A Roleplay Framework for alt:V by Stuyk
https://athenaframework.com/
229 stars 149 forks source link

Object and Item Injectors added #365

Closed jonasesser closed 1 year ago

jonasesser commented 2 years ago

Needed for object/item modifications, saving dropped items in db and for modification of ground items via WheelMenu.

github-actions[bot] commented 2 years ago

Click on command line instructions below for checkout information of this PR.

jonasesser commented 2 years ago

Code for Update a GroundItem:

    static updateItem(item: GroundItem) {
        InventoryView.update(item.item);
        ServerItemController.update(item);
        ServerObjectController.update({ uid: item.uid });
    }

would of course be nicer if we could manage it soon with one line of code