Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
updated several commands to v5 (#404)
Browse files Browse the repository at this point in the history
* updated several commands to v5

* all test-commands updated

* session vehicle command updated

* update fullTuneVehicle

* fix liveryCommand & fullTune overwriting livery

* added function for getting all tuningData from a vehicle and fixed commands

* resolved change request

* resolved change request
  • Loading branch information
Dav-Renz committed Apr 2, 2023
1 parent 76e36de commit 2b4a7e1
Show file tree
Hide file tree
Showing 4 changed files with 442 additions and 477 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ Athena.systems.messenger.commands.register(
['admin'],
async (player: alt.Player, id: string | undefined) => {
let target = player;

const hash = typeof target.model === 'number' ? target.model : alt.hash(target.model);

if (typeof id !== 'undefined') {
target = Athena.systems.identifier.getPlayer(id);
}
Expand All @@ -39,5 +42,9 @@ Athena.systems.messenger.commands.register(
}

Athena.systems.inventory.clothing.clearSkin(target);

let pedInfo = Athena.utility.hashLookup.ped.hash(hash);

Athena.player.emit.message(player, `Skin ${pedInfo.name} was removed.`);
},
);
Loading

0 comments on commit 2b4a7e1

Please sign in to comment.