I have installed it all correctly, made sure that I got it there but getting this error message in F8 Console.
Line 21:
if plateOverride.fileName then
My server.cfg looks like this:
#PLATE OVERRIDE
# xnPlates
setr plate_override_plate01 { #Blue on White #1
"fileName" : "plates/snailplate.png",
"normalName" : "plates/plateNormals.png",
"pattern" : "AAA 111"
}
setr plate_override_plate02 { #Yellow on Black
"fileName" : "plates/snailplateRed.png",
"pattern" : " 1A 1AA"
}
setr plate_override_plate03 { #Yellow on Blue
"fileName" : "plates/snailplateYellow.png",
"pattern" : "1AA 1AA"
}
setr plate_override_plate04 { #Blue on White #2
"fileName" : "plates/snailplateGreen.png",
"pattern" : "111 AAA"
}
setr plate_override_plate05 { #Police Exempt
"fileName" : "plates/snailplateBlue.png",
"pattern" : "1AA 1AA"
}
setr plate_override_yankton_plate { #Yankton
"fileName" : "plates/snailplatePink.png",
"pattern" : " 11111 "
}
What have I done wrong or what havenât I done? Hope this is a simple fix.
Great mod and thanks in advance for the help.
EDIT: Server has been restarted several time after changing them but error message is still persistent and cars do not show the plates supplied.
1 Like
Smallo
January 17, 2023, 7:16am
63
Works perfectly fine here, so not sure whatâs wrong on your end. Generally that error means itâs an issue with the stuff in your server.cfg.
I donât know then.
This is my full Server.cfg (I have taken out the token and other information that is sensitive)
# ____ ____ _____
# / __ \| _ \ / ____|
# | | | | |_) | | ___ _ __ ___
# | | | | _ <| | / _ \| '__/ _ \
# | |__| | |_) | |___| (_) | | | __/
# \___\_\____/ \_____\___/|_| \___|
## You CAN edit the following:
endpoint_add_tcp "IP:30125"
endpoint_add_udp "IP:30125"
sv_maxclients 48
set steam_webApiKey "none"
sets tags "TAGS"
## You MAY edit the following:
sv_licenseKey "LICENCE" #Beaus Licence#
#sv_licenseKey "LICENCE" #Scottys Licence#
sv_hostname "^0[PvP] ^5VicLife RP đ ^2Australian Roleplay đŒ ^1Jobs ^4Available đ» ^8Active Community & Development đ ^7Custom Cars"
sets sv_projectName "[QBCore] ^5VicLife RP"
sets sv_projectDesc "Australian Real Life Based Roleplay, Join us today @ discord.gg/zeVu7aN6za"
sets locale "en-AU"
load_server_icon myLogo.png
set sv_enforceGameBuild 2699
set mysql_connection_string "CONNECTION"
# Voice config
setr voice_useNativeAudio true
setr voice_useSendingRangeOnly true
setr voice_defaultCycle "GRAVE"
setr voice_defaultVolume 0.3
setr voice_enableRadioAnim 1
setr voice_syncData 1
# QBCore locale config
setr qb_locale "en"
# QBCore UseTarget
setr UseTarget false
#PLATE OVERRIDE
# xnPlates
setr plate_override_plate01 { #Blue on White #1
"fileName" : "plates/snailplate.png",
"normalName" : "plates/plateNormals.png",
"pattern" : "AAA 111"
}
setr plate_override_plate02 { #Yellow on Black
"fileName" : "plates/snailplateRed.png",
"pattern" : " 1A 1AA"
}
setr plate_override_plate03 { #Yellow on Blue
"fileName" : "plates/snailplateYellow.png",
"pattern" : "1AA 1AA"
}
setr plate_override_plate04 { #Blue on White #2
"fileName" : "plates/snailplateGreen.png",
"pattern" : "111 AAA"
}
setr plate_override_plate05 { #Police Exempt
"fileName" : "plates/snailplateBlue.png",
"pattern" : "1AA 1AA"
}
setr plate_override_yankton_plate { #Yankton
"fileName" : "plates/snailplatePink.png",
"pattern" : " 11111 "
}
# These resources will start by default.
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure baseevents
# QBCore & Extra stuff
ensure qb-core
ensure [qb]
ensure [standalone]
ensure [voice]
ensure [defaultmaps]
exec resources.cfg
## Permissions ##
add_ace group.admin command allow # allow all commands
#add_principal identifier.{{principalMasterIdentifier}} qbcore.god <- doesn't exist yet, change the generated one below to qbcore.god
add_principal identifier.fivem:ID qbcore.god #Scottywonderful
add_principal identifier.fivem:ID group.admin #Scottywonderful
add_principal identifier.steam:ID group.admin #Scotty
add_principal identifier.license:LICENCE group.admin #Scotty
add_principal identifier.license:LICENCE group.admin #GHOSTY
add_principal identifier.license:LICENCE group.admin #BEAU
# Discord
add_ace resource.zdiscord command allow
add_ace group.zdiscordstaff zdiscord.staffchat allow
# Resources
add_ace resource.qb-core command allow # Allow qb-core to execute commands
add_ace resource.ox_lib command.add_ace allow
add_ace resource.ox_lib command.remove_ace allow
add_ace resource.ox_lib command.add_principal allow
add_ace resource.ox_lib command.remove_principal allow
# Gods
add_ace qbcore.god command allow # Allow all commands
# Inheritance
add_principal qbcore.god group.admin # Allow gods access to the main admin group used to get all default permissions
add_principal qbcore.god qbcore.admin # Allow gods access to admin commands
add_principal qbcore.admin qbcore.mod # Allow admins access to mod commands
Let me know if you can see anything that doesnât catch my eyeâŠ
Hello, I installed it and have the problem that the license plate changes when I buy it. Everything is displayed correctly in the shop, thanks in advance
Smallo
January 17, 2023, 9:31am
66
@BlueWidow90
Because whatever purchase script you have changes license plates, not controlled by my script.
@Scottywonderful
Remove the comments you have
#Blue on White #1
That stuff, thatâs breaking the json.
Smallo
January 17, 2023, 10:01am
68
Update: You no longer need to add the config data to your server.cfg
instead there is an included plates.cfg
file. In your server.cfg
file simply add;
ensure xnPlates; exec @xnPlates/plates.cfg
and edit the plates.cfg instead.
Download: xnPlates.zip (81.2 KB)
use the default esx_vehicleshop
or can you change that, that the shop does not award the rendom?
Thank you for that. It fixed it.
Great script mate, glad itâs working now!
possible to add a config if i dont want to use patterns? so for example just write my name on the plateâŠand no other restrictions lol
Derek_M
January 19, 2023, 8:26pm
73
Question, Is this still possible to use to replace default plates?
Smallo
January 19, 2023, 10:34pm
74
Yes thatâs the whole point of the script
Im so glad I found this fix instead of paying the Lincoln Graphics guy for the same thing!! This is so great thank you!!!
amazing script brotha! 10/10 works just fine no errors!
ntdg
March 23, 2023, 10:55pm
77
Any idea why this would be happening? The format part of the script is working properly, but the images are not. Only happens with the plate01.
Smallo
March 23, 2023, 10:59pm
78
Whatâs the problem? I see an image there fine?
ntdg
March 23, 2023, 10:59pm
79
The florida plate is ghosted behind the default plate. It should only be the Florida plate.
ntdg
March 23, 2023, 11:01pm
80
Disregard, changed the normalmap instead of the plate by accident. My fault.
Any idea if add on plates are now possible? I cant seem to get any scripts to work for additional plates just overrides
Smallo
April 8, 2023, 10:45pm
82
Nope, still not possible unfortunately.