This repository has been archived by the owner on Feb 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
Home
William Plunkett Jr edited this page Sep 3, 2019
·
13 revisions
- Here i will be Posting some of the Common Questions that we have.
- Print the name of the model instead of hash of Vehicle when a player attempts to cheat.
- 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.
- It has been noted that Restarting this Script in-game can cause certain things in this script to break. No known fix for this.
- Make sure that you load the scripts in the Correct order. This Script should be started after esx_vehicleshop.
- Setup the vehicle_names.lua or set Config.UseVehicleNamesLua to false
(Says i don't Own any 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)
(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)
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