Hi all i hope you are all well, over the past 500hours of fivem game play ive come across a lot of good servers but i really really want to create my own and expand on scripts.
I am using the ZAP HOSTING service, The biggest issue so far is with the garage script, The one provided with the esx installation through ZAP does random things, certain garages work, certain ones only work for some cars and for some players, some of them send your car to the nether realm, this is a big problem for me as i feel like i cant move forward if i cant even get cars to save in garages, When i check the sql database, the cars that disappear are still listed with the owner information, however i dont know how to recover them once they disappear.
after a bit of digging and keeping an eye on the sql databses i discovered the below :
Garage 5/6 ( Steele Way ) - Broken, Sends Car to Garage 6/6 ( Didion Way )
Garage 1/6 ( Milton Drive ) - Broken, Sends car to garage 3/6 ( Vinewood Estate 2650 )
Garage 2/6 ( Integrity Way) ) - Broken, Sends car to garage 3/6 ( Vinewood Estate 2650 )
So certain garages also seem to transport cars to other garages, this creates all sorts of duping issues. i dont see any errors in the live console, but in the f8 menu i do get this one error that looks somewhat unrelated to the garage issue.
error : SCRIPT ERROR: @esx_garage/client/main.lua:232: attempt tp call a nill value (field âSetVehicleEngineOnâ)
My server.cfg ( has all the plugins from zaps auti installer )
set es_enableCustomData 1
set mysql_connection_string âMY DATABASE USER AND STUFFâ
endpoint_add_tcp â139.99.208.143:32006â
endpoint_add_udp â139.99.208.143:32006â
sv_maxclients 10
You probably donât want to change these!
Only change them if youâre using a server with multiple network interfaces.
These resources will start by default.
start mapmanager
start chat
start spawnmanager
start sessionmanager
start fivem
start hardcap
start mysql-async
start essentialmode
start esplugin_mysql
start es_admin2
start qalle_coords
From ESX Pack
start async
start cron
start es_extended
start instance
start es_camera
start skinchanger
start esx_accessories
start esx_addonaccount
start esx_addoninventory
start esx_phone
start esx_society
start esx_ambulancejob
start esx_animations
start esx_atm
start esx_bankerjob
start esx_barbershop
start esx_basicneeds
start esx_billing
start esx_boat
start esx_boilerplate
start esx_clotheshop
start esx_cruisecontrol
start esx_datastore
start esx_dmvschool
start esx_drugs
start esx_garage
start esx_holdup
start esx_identity
start esx_joblisting
start esx_jobs
start esx_license
start esx_lscustom
start esx_mechanicjob
start esx_menu_default
start esx_menu_dialog
start esx_menu_list
start esx_migrate
start esx_optionalneeds
start esx_policejob
start esx_property
start esx_realestateagentjob
start esx_rpchat
start esx_service
start esx_shops
start esx_sit
start esx_skin
start esx_status
start esx_taxijob
start esx_vehicleshop
start esx_voice
start esx_weaponshop
End of ESX Pack
start es_ui
add_ace resource.essentialmode command.add_principal allow
add_ace resource.essentialmode command.add_ace allow
start â â â â â â â
start scoreboard
This allows players to use scripthook based plugins such as lambda menu.
Set this to 0 to disallow scripthook.
sv_scriptHookAllowed 1
Uncomment this to enable RCON. Make sure to change the password.
rcon_password MYRCONPASSWORD
A comma-separated list of tags for your server.
For example:
- sets tags âdrifting, cars, racingâ
Or:
- sets tags âroleplay, military, tanksâ
sets tags âdefaultâ
Set an optional server info and connecting banner image url.
Size doesnât matter, any banner sized image will be fine.
#sets banner_detail âhttp://url.to/image.pngâ
#sets banner_connecting âhttp://url.to/image.pngâ
Set your serverâs hostname
sv_hostname âSERVER NAMEâ
Nested configs!
#exec server_internal.cfg
Loading a server icon (96x96 PNG file)
load_server_icon zap96x96.png
convars which can be used in scripts
set temp_convar âhey world!â
Uncomment this line if you do not want your server to be listed in the server browser.
#sv_master1 ââ
Want to only allow players authenticated with a third-party provider like Steam?
Donât forget Social Club is a third party provider too!
#sv_authMaxVariance 1
#sv_authMinTrust 5
Add system admins
add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but donât allow quit
Hide player endpoints in external log output.
sv_endpointprivacy true
onesync_enabled 0
#This is an official FiveM server hosted by ZAP-Hosting.com. You do not need to put a license key here.
restart sessionmanager
add_ace group.admin webadmin allow
add_principal identifier.steam:STEAMID group.admin