GlensowV5 / qb-garages

GNU General Public License v3.0
17 stars 4 forks source link

upper error #5

Open The-Omen56 opened 1 month ago

The-Omen56 commented 1 month ago

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