Description:
It adds an Item named Tape, which allows you to Tape your Numberplate, I have made an Example, what you can do with it. It also Includes custom Plates, which are Taped. This Version Includes an save in the Databank, so that if someone has an problem, you can change the plate to the same as before.
Example:
For Example you have an Speedcamera Script and you want the players not ot get an Fine, they can Tape their Numberplate. You can Implement this through the Implemented Export.
Preview:
Preview
Photo Preview, Only with custom Plates:
Resources Monitor:
Depencies:
[image]
A wrapper for node-mysql2 to allow communication between FXServer and a MySQL database.
[image] [image] [image] [image]
Documentation
Repository
Download
Features
Support for mysql-async and ghmattimysql syntax.
Promises / async query handling allowing for non-blocking and awaitable responses.
Improved performance and stability compared to other options.
Support for named and unnamed placeholders, improving performance and security.
Support for URI connection strings and semicolonâŚ
Hello.
I spent some time trying different ways of doing this and ended up making a basic NUI that adds progress bars that you can add for when using something in your inventory script for example, basically however you want.
This is really basic and in the __reosurce.lua I export the function to start the progress bar with time in MS and the text you want it to display. Example will be below. This is simple to use and because I use export you can add it into any resource you want.
exports['prâŚ
Optional:
[ox_target]
The successor to qtarget , focused on improving functionality and performance at the cost of compatibility.
[image] [image] [image] [image]
Documentation
Repository
Download
Dependencies
ox_lib
Why another third-eye resource?
The original author of qtarget left FiveM right after releasing it, with many features scrapped or untested. Since it was supposed to be mostly compatible with bt-target it kept many of its flaws, and the resource was mostly abandoned as I worked on othâŚ
Optional for Custom Plates:
[cars0-2] [cars3-5]
xnPlates
So I have been seeing a whole lot of pretty awful license plate scripts as of late (paid ones for that matter), so I decided to make my own more powerful one, with the help of Bubble adding a custom native for me (and for all of you). So basically this script allows you to replace the texture of any license plate and the generation for each license plate type and isnât performance degrading like the others that use web based images.
And no this isnât going to causâŚ
How to install the plates:
To overrite the Yankton plate:
Put following code into plates.cfg:
setr plate_override_yankton_plate {
"fileName" : "plates/palteunder.png",
"normalName" : "plates/palteunder_n.png",
"pattern" : "AAAA1111"
}
Drag and Drop the plate Textures in the plates folder
To start it put ensure xnPlates; exec @xnPlates /plates.cfg into your server.cfg
Github:
7 Likes
A great idea.
Currently I would actually miss the database âRemoveâ if someone uses the tape_remover.
Perhaps instructions for âbeginnersâ on how to replace the license plate would be helpful.
Otherwise you did a great job
Thanks for your comment!
Added that it removes the database.
Going to add an Tutorial soon
1 Like
Sick idea!!! thanks for the free release.
You must rework this:
server.lua:31: attempt to index a nil value (local âxPlayerâ)
server.lua:31 is an end:
RegisterServerEvent('nkhd_changePlate:removeTapeItem')
AddEventHandler('nkhd_changePlate:removeTapeItem', function()
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
if xPlayer then
xPlayer.removeInventoryItem('tape', 1)
else
if Config.Debug == true then
print("Error: Player not found - player ID: " .. _source)
end -- This end
end
end)
Error comes here,
RegisterServerEvent(ânkhd_changePlate:getIdentifierâ)
AddEventHandler(ânkhd_changePlate:getIdentifierâ, function()
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source) â â â
local identifier = xPlayer.identifier
TriggerClientEvent(ânkhd_changePlate:receiveIdentifierâ, _source, identifier)
end)
What ESX Version do you use? at minte there is no problem
Should work now I hope, at my server it was only if I hadnât selected an charakter
You were a few minutes faster now
I actually just had the solution
I donât know if mine even works in your esx version
At mine it worked before also
Thats how it works
Have you ever thought about including a target option?
I think some people would be happy about that too
Do you mean like ox target?
Added an very Bad solution, but it works for now, tring to make it better
Made it better, donât have to download my Ox Target version