diff --git a/README.md b/README.md index 25a712af..75e4a94a 100644 --- a/README.md +++ b/README.md @@ -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/. \ No newline at end of file diff --git a/client/main.lua b/client/main.lua index 87ece1e8..910d9f52 100644 --- a/client/main.lua +++ b/client/main.lua @@ -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) \ No newline at end of file