Jump to content

Get Vehicle Hash


alienwave

Recommended Posts

I take the " vehicle.getLayoutHash()" and use it like this:

mp.events.addCommand('hash', (player) => {
    let vehicle = player.vehicle;
    vehicle.getLayoutHash(vehicle);
})

But when I enter a command in the vehicle, the console tells me the following:

 TypeError: vehicle.getLayoutHash is not a function
    vehicle.getLayoutHash(vehName);

What should I do?

Link to comment
Share on other sites

const vehicle = mp.players.local.vehicle;
mp.gui.chat.push(`hash: ${vehicle.getLayoutHash()}`);

It works, thanks, but for some reason, the hash is just a set of numbers. For example:

ZTYPE: 0x2D3BD401,
AMGGT: 2228715155

ZTYPE is ok, but AMGGT...

Edited by alienwave
Link to comment
Share on other sites

  • Xabi locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...