Fixed bug with esx_garage, updated readme

This commit is contained in:
ElPumpo
2018-05-22 19:58:39 +02:00
parent 4dcaf6b9ba
commit 72a733747b
2 changed files with 32 additions and 8 deletions
+28 -5
View File
@@ -1,14 +1,37 @@
# instance
[INSTALLATION]
## Download & Installation
1) CD in your resources folder
2) Clone the repository
### Using [fvm](https://github.com/qlaffont/fvm-installer)
```
git clone https://github.com/FXServer-ESX/fxserver-instance instance
fvm install --save --folder=esx esx-org/instance
```
3) Add this in your server.cfg :
### Using Git
```
cd resources
git clone https://github.com/ESX-Org/instance [esx]/instance
```
### Manually
- Download https://github.com/ESX-Org/instance/archive/master.zip
- Put it in the `[esx]` directory
## Installation
- Add this to your `server.cfg`:
```
start instance
```
# Legal
### License
instance - enter buildings!
Copyright (C) 2015-2018 Jérémie N'gadi
This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.
This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details.
You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/.
+4 -3
View File
@@ -37,6 +37,7 @@ end
function CloseInstance()
Instance = {}
TriggerServerEvent('instance:close')
InsideInstance = false
end
function EnterInstance(instance)
@@ -282,13 +283,13 @@ Citizen.CreateThread(function()
while true do
Citizen.Wait(0) -- must be run every frame
if InsideInstance then
if InsideInstance then
SetVehicleDensityMultiplierThisFrame(0.0)
SetParkedVehicleDensityMultiplierThisFrame(0.0)
local pos = GetEntityCoords(GetPlayerPed(-1))
RemoveVehiclesFromGeneratorsInArea(pos['x'] - 900.0, pos['y'] - 900.0, pos['z'] - 900.0, pos['x'] + 900.0, pos['y'] + 900.0, pos['z'] + 900.0);
RemoveVehiclesFromGeneratorsInArea(pos.x - 900.0, pos.y - 900.0, pos.z - 900.0, pos.x + 900.0, pos.y + 900.0, pos.z + 900.0);
else
Citizen.Wait(1000)
Citizen.Wait(5000)
end
end
end)