Is “fakeplates/client.lua:142” this exact code?:
If so, one of the values trying to be concatenated (by using ..
) is nil. According to what you have posted, the issue could be any of the following:
- The
QBCore.Shared.RandomInt
andQBCore.Shared.RandomStr
functions are broken (however, that is most likely not the case) - There is an issue with the execution of the native
SetVehicleNumberPlateText
, likely due to it being invoked improperly (see: the screenshot of your F8 console). - The
QBCore:HasItem
failed to be invoked due to deprecation, therefore it sent no data down the chain, so all functions that depended on it pretty much gave up due to incorrect/nil data (this is likely the case)
The code that you have provided in the post doesn’t seem to contain any QBCore:HasItem
calls. However, if my guess is correct, to fix this problem you would have to replace any HasItem
callback in your client script that looks like this:
QBCore.Functions.TriggerCallback('QBCore:HasItem', function()
-- do stuff here
end, "item_id_here")
with this:
if QBCore.Functions.HasItem("item_id_here") then
-- do stuff here
end
If that doesn’t solve the problem, please post further context as to where and how you are invoking the native that seems to be located @ line 142 in fakeplates/client.lua