Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.
William Plunkett Jr edited this page Sep 3, 2019 · 13 revisions

Welcome to the esx_advancedgarage wiki!

  • Here i will be Posting some of the Common Questions that we have.

WIPs

  • Print the name of the model instead of hash of Vehicle when a player attempts to cheat.

Bugs, Questions, Etc

  • There is a Limit on how many Vehicles you can Own - Car Garage = 36, Boat Garage = 36, & Aircraft Garage = 36.
    • The only way to Limit how many Vehicles one can own you must edit esx_vehicleshop, esx_boatshop, & esx_aircraftshop.
  • Ability to Duplicate Cars - This can't be fixed sadly.
    • The only real way to fix this is to remove the impound &/or removing the ability to pull out vehicles destroyed/missing.
  • Haven't tested with Car Dealer Job - May or may not working with Car Dealer Job.
  • May not work with OneSync. I don't plan on supporting OneSync b/c I'm not paying for it.

Other

1. Restarting the Script can cause Problems

  • It has been noted that Restarting this Script in-game can cause certain things in this script to break. No known fix for this.

2. When going into the Circle nothing pops up or its not working correctly

  • Make sure that you load the scripts in the Correct order. This Script should be started after esx_vehicleshop.

3. How to create a vehicle_names.lua

4. Vehicle Names showing up as NULL

  • Setup the vehicle_names.lua or set Config.UseVehicleNamesLua to false

5. Storing vehicles in Garage but can't pull Vehicles out of Garage or Impound.

(Says i don't Own any Vehicles)

6. Not able to Store Vehicles.

(This is a weird one as this doesn't work for me but works for some others)

  • Noted Here
  • Go into server/main.lua & change
  • Delete or Comment out lines 6-18
  • Add the code below.
AddEventHandler('onMySQLReady', function()
	MySQL.Sync.execute("UPDATE owned_vehicles SET stored=true WHERE stored=false", {})
end)

7. Error ShowHelpNotification

(Another weird one that works for me but not for some others)

  • Noted Here
  • Some people have problems with ESX.ShowHelpNotification(CurrentActionMsg)
  • You can either Comment out that line or Replace that line with the fix below
                        SetTextComponentFormat('STRING')
			AddTextComponentString(CurrentActionMsg)
			DisplayHelpTextFromStringLabel(0, 0, 1, -1)

8. Vehicles coming out Broken/Damaged

Until i have the time to fix the issue here is a quick fix.

  • Go to es_extended/client/functions.lua
  • Do the following
	if props.bodyHealth ~= nil then
		--SetVehicleBodyHealth(vehicle, props.bodyHealth + 0.0)
	end

	if props.engineHealth ~= nil then
		--SetVehicleEngineHealth(vehicle, props.engineHealth + 0.0)
	end

or you can revert the changes by doing

		health            = GetEntityHealth(vehicle),
		--bodyHealth        = ESX.Math.Round(GetVehicleBodyHealth(vehicle), 1),
		--engineHealth      = ESX.Math.Round(GetVehicleEngineHealth(vehicle), 1),

&

	if props.health ~= nil then
		SetEntityHealth(vehicle, props.health)
	end

	--if props.bodyHealth ~= nil then
		--SetVehicleBodyHealth(vehicle, props.bodyHealth + 0.0)
	--end

	--if props.engineHealth ~= nil then
		--SetVehicleEngineHealth(vehicle, props.engineHealth + 0.0)
	--end
Clone this wiki locally