i am getting an error as followed.
script:qb-garages] SCRIPT ERROR: @qb-garages/server/main.lua:647: bad argument #1 to 'upper' (string expected, got nil)
the code it is pointing to is
RegisterNetEvent('qb-garages:server:parkVehicle', function(plate)
plate = string.upper(plate)
local vehicle = GetVehicleByPlate(plate)
if vehicle then
DeleteEntity(vehicle)
end
end)
If someone can help me with this it would be great. thank you
i am getting an error as followed. script:qb-garages] SCRIPT ERROR: @qb-garages/server/main.lua:647: bad argument #1 to 'upper' (string expected, got nil)
the code it is pointing to is RegisterNetEvent('qb-garages:server:parkVehicle', function(plate) plate = string.upper(plate) local vehicle = GetVehicleByPlate(plate) if vehicle then DeleteEntity(vehicle) end end)
If someone can help me with this it would be great. thank you