alienwave Posted April 25, 2020 Posted April 25, 2020 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?
alienwave Posted April 25, 2020 Author Posted April 25, 2020 4 минуты назад, Xabi сказал: getLayoutHash() is a clientside function. Thx, I'll try it later
alienwave Posted April 25, 2020 Author Posted April 25, 2020 (edited) 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 April 25, 2020 by alienwave
Xabi Posted April 25, 2020 Posted April 25, 2020 The first value seems to be HEX and the second one decimal.
alienwave Posted April 25, 2020 Author Posted April 25, 2020 (edited) 2 минуты назад, Xabi сказал: The first value seems to be HEX and the second one decimal. How can i convert decimal to HEX? By using the sites or have a function? Edited April 25, 2020 by alienwave
alienwave Posted April 25, 2020 Author Posted April 25, 2020 CLOSED: You need to convert decimal to hex using sites
Recommended Posts