This scripts allow the players to place and remove fake vehicle plates for their criminal activities. The vehicle will not be able to be targeted by the police, the vehicle owner will always be unknown while having a fake vehicle plate. In order to find the criminal, police and everyone can remove the vehicle plate by using a Multitool.
Just let your mechanics know or your developer, to not allow any mods to be changed while a vehicle has a fake plate placed, such as colors, engine levels, etc.
I’ll let my players know when I announce that it’s in the city. Think you could add in a trigger that we can add to our mechanic script to check for a fake plate, and if there is one installed a notification will pop up saying to remove it to install upgrades?
Something like trigger client/serverevent(‘checkplate’) fakeplate = true then export mythic_notify - sendalert remove fake plate!
Obviously that isn’t the correct wording for it.
Also should add in when a plate is removed it’s added back to your inventory.
What i do is just checking if a vehicle has the fake vehicle plate text that i have chosen in order to not allow any changes, but i can do that if you want.
Also, second idea is also very easy and more realistic, i can do that too when i get back from work.
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.
We are now successfully supporting QBCore Framework.
ProgressBar Script used to be a dependency in order to have progress bars on actions, we successfully added this progress bar system and now you don’t need it as a dependency.
We are now supporting other notification extended scripts such as:
mythic_notify
okoknotify
pnotify
default (esx / qbcore).
Most of the code has been re-coded and it is now more efficient than it used to be.