I’m trying to get the hashkey/displayname from the car im setting in:
local Veh = GetVehiclePedIsIn(GetPlayerPed(-1), true)
local VehType = GetLabelText(GetDisplayNameFromVehicleModel(GetEntityModel(Veh)))
This works perfectly when I’m in a stock car but when I’m in one of my add-ons it say’s null.
Do you set up GXT names for your add-ons vehicles?
GXT names? What is that?
I was hoping that I could get hold on one of the .meta values:
Im aware of the GTX names now, but how should the be set? Don’t each add-on come with a predefined hex?
This fixed it:
function AddTextEntry(key, value)
Citizen.InvokeNative(GetHashKey(“ADD_TEXT_ENTRY”), key, value)
And ofcause Im still getting null values in 1/20 add-ons. Could this be due to some flaw in the add-on itself?
Awesome having a conversation with my self here.
Thanks @MarkViolla. I got my first like from this
There’s a bug with GXT keys and one function not being patched, this will be fixed in the future.
So a new bug of today or? Because I havent been able to get it to work at all after update.