[PAID] [ESX & QBCORE] Fake Vehicle Plates

Okay I put in the line for adding the plate back into inventory when removed. I also edited this to work with RufiCarKeys if anyone else uses that resource for car keys.

Lines 185-189 in client.lua

-- SetVehicleNumberPlateText(vehicle, Config.FakePlateText)

                    SetVehicleNumberPlateText(vehicle, "FTPBCH"..tostring(math.random(00, 99)))

                    local vehiclePlate = GetVehicleNumberPlateText(vehicle) 

                    local vehicleModel = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle))

                    TriggerServerEvent('RufiCarkey:RegisterPlate', vehiclePlate, vehicleModel)

EDIT: If this is breaking any rules by posting that edit, please let me know and I’ll remove it.

2 Likes