Plate swapping and plate theft script

Lets you joink plates from local cars. And put them on your personal cars. Saves them as items and you can take them off and re-use them.

Depending on how you scanner script works, it might print out the actual car model even if plates are wrong tho.

Includes export functions to handle stuff like that. More in readme.

For QB. We don’t know how ESX works :v:

Watch it here :point_down:

Download it here :point_down:

4 Likes

thanks man , been looking for something similar
:slight_smile:

is there a way to make it standalone and not require to be qb-core?

No, I doubt it. afaik there is no way to have a “standalone” database. That’d still have to change.

Can this work with jacksams vehicle keys script?

I have never used that script. You’ll probably have to change out the parts in the code in cw-plateswap where we reference qb-vehiclekeys

I have all the export documentation available, any chance of a bit of help? im still new to this code stuff :sweat_smile:

There’s a support link in the github. However, we at CW do not have any experience with the script you’re using so I doubt we’ll be able to help.

What you want to do is find all the spots where this is used and replace them with the respective function or event from the script you use.
Here’s an example.

TriggerEvent('qb-vehiclekeys:client:AddKeys', fakePlate:upper())

There’s also a callback 'qb-vehiclekeys:server:GetVehicleKeys' that will need to be replaced with something that does the same (fetch all belonging to the player)

1 Like

thank you!! I really appreciate that :smiley:

1 Like

just done a fresh install of this script, for some reason we cant steal plates from cars. Says we dont have keys to the vehicle. Any idea? :slight_smile:

It’s an abuse prevention.

Needed cause QB tracks car keys by plate not by entities

ah ok, any way for me to fix it? Would be awesome if i could implement this script in the server

Acquire the keys for the vehicle and you should be able to remove the plate.

Looks amazing great work

3 Likes

These are npc vehicles that are just parked up, so we gotta steal the car first then rob the plate?

Yes. You’re free to re-code it to not do those checks. The code is all open source. But it’ll open up for abuse.

Ah ye true. No no ima leave it how it is. Players will definitely abuse it. Thank you for your time! Love your work man!

1 Like

So, uh, I just realized that I actually re-coded this script to let you steal from any car but only apply to owned cars (so like the opposite of before).

Made this months ago for our server but forgot to update the public version :v: It’s updated now.

1 Like

Very out of the blue on an old script do you plan on porting this for Standalone? or something similar?

Most likely not. This script needs a from-the-ground-up rewrite if I ever touch it again, and since it needs to change the database (unless I remove the feature to save stolen plates) it’s hard to do it “standalone” as it needs to cater to several types of dbs.

1 Like