OhTanoshi / esx_drp_garage

Garage system for esx
17 stars 26 forks source link

Config the names that show up in the garage #78

Closed AlexFonseca-Z closed 3 years ago

AlexFonseca-Z commented 3 years ago

Hi there! I was using this script and it works perfectly, but the names displayed in the garage are the names in the vehicle files, is there a way that I can change that? I tried doing a vehicle_names script yet it works for some scripts but not for this one.

AlexFonseca-Z commented 3 years ago

I figured it out! Just had to go on client/client.lua search for the part of the code with

GetDisplayNameFromVehicleModel(hashVehicule)

and change it to

GetLabelText(GetDisplayNameFromVehicleModel(hashVehicule))