alienwave Posted April 25, 2020 Share 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? Link to comment Share on other sites More sharing options...
Xabi Posted April 25, 2020 Share Posted April 25, 2020 getLayoutHash() is a clientside function. Link to comment Share on other sites More sharing options...
alienwave Posted April 25, 2020 Author Share Posted April 25, 2020 4 минуты назад, Xabi сказал: getLayoutHash() is a clientside function. Thx, I'll try it later Link to comment Share on other sites More sharing options...
alienwave Posted April 25, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
Xabi Posted April 25, 2020 Share Posted April 25, 2020 The first value seems to be HEX and the second one decimal. Link to comment Share on other sites More sharing options...
alienwave Posted April 25, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
alienwave Posted April 25, 2020 Author Share Posted April 25, 2020 CLOSED: You need to convert decimal to hex using sites Link to comment Share on other sites More sharing options...
Recommended Posts