First time using fivem and ESX could use some tips :)

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

If you looking for a different garage script JAM_Garage is pretty good.

1 Like

thanks will give it a go, if im using jam should i # out the esx garage but leave the vehicleshop ?

Yes. Eden garage is also a good one

1 Like

yeah # it out

1 Like

ok so JAM didnt throw any errors, but didnt do anything either. didnt add any blips or working garages, ill give eden ago tomorrow, have spent to much time today trying to get a single garage script to work lmao.

Thanks.

oh you need to follow the read me as you also need JAM base.

dude. i spent 4 days trying to find and get a garage script to work. i feel your pain!

yes i did that

did you start JAM after vehicleshop?

yup i did. anyway got rid of jam, messing with eden now, blips show up and the circles show up, however when pressing “e” , which i assume is to store the car as i dont speak french, nothing seems to happen.

dang. not having any luck. yeah ‘e’ should store a car you have bought

i used eden for awhile but recently switched to esx_advancedgarage dropped the sql database and uploaded this one and am enjoying it. I have self taught myself the past 7 months or so and am enjoying it, feel like my server is coming along excellent, so i wish you luck on yours!

i had to many issues with esx, eden took a few edits to work properly but now its working sweet.

what edits did you do to get everything working for the Eden garage?