Step 4. Modify the jg-advancedgarages:client:TakeOutVehicle:config Event in 'config-cl.lua'
Add the below code to the event
local fakePlate = lib.callback.await('brazzers-fakeplates:getFakePlateFromPlate', false, vehicleDbData.plate)if fakePlate thenSetVehicleNumberPlateText(vehicle,fakePlate) end
Step 5. Add The Following to config-sv.lua
lib.callback.register('brazzers-fakeplates:getPlateFromFakePlate', function(source,fakeplate)local result = MySQL.scalar.await('SELECT plate FROM player_vehicles WHERE fakeplate = ?', {fakeplate})if result thenreturn resultendend)lib.callback.register('brazzers-fakeplates:getFakePlateFromPlate', function(source,plate)local result = MySQL.scalar.await('SELECT fakeplate FROM player_vehicles WHERE plate = ?', {plate})if result thenreturn resultendend)
Step 6. Modify the Vehicle Key Functions to recognize the Fake Plate
Find Framework.Client.VehicleGiveKeys(plate, vehicleEntity) and add the below code after if not DoesEntityExist(vehicleEntity) then return false end
local fakePlate = lib.callback.await('brazzers-fakeplates:getFakePlateFromPlate', false, plate)if fakePlate then plate = fakePlate end
Do the Same for Framework.Client.VehicleRemoveKeys(plate, vehicleEntity)
local fakePlate = lib.callback.await('brazzers-fakeplates:getFakePlateFromPlate', false, plate)if fakePlate then plate = fakePlate end