Hello to you here is the error I am getting :
@esx_vehiclelock/client/main.lua : attempt to concatenate a nil value (field ‘plate’)
Namely that my es_extended is up to date (v.final) as well as my essentialmode.
If anyone has a solution, I am interested. thank you in advance
Spyoo
2
Hello, try to do this :
for k,v in pairs(mykey) do
print(k, v)
end
put that on top of this : for i=1, #mekey, 1 do and share the result in console
With the formula you gave me the plugin no longer works
Spyoo
4
the code that i give can’t do that
I’ll give it a second try, or do you want me to put the code in now?
Spyoo
6
input the code after line 94 above of local elements = {}
I get the same error even with this change but I have a table thing that pops up
Spyoo
8
Okay now replace this :
for k,v in pairs(mykey) do
print(k, v)
end
by this :
for k,v in pairs(mykey) do
for a,b in pairs(v) do
print(a,b)
end
end
and share the result
Here is the new error after adding the formula you gave me
Spyoo
10
Okay so in your table “mykey” the second entry has not key “plate”
So try to do this for be sure
Delete this :
for k,v in pairs(mykey) do
for a,b in pairs(v) do
print(a,b)
end
end
put this instead of :
print(mykey[1].plate) -- result will be QNGR8552
print(mykey[2].plate) -- result will be nil
Here is the new error after adding the formula you gave me
Namely that the print is just a line of code to display a message in the console
Spyoo
12
The problem is from your table “mykey” he is not complete he miss plate of second entry
Since I don’t know myself, I don’t know what to wear
local plate = GetVehicleNumberPlateText(GetVehiclePedIsIn(), false)
I tried this but no conclusive result