/esx_service

FXServer ESX Service

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

esx_service

Download & Installation

Using fvm

fvm install --save --folder=esx esx-org/esx_service

Using Git

cd resources
git clone https://github.com/ESX-Org/esx_service [esx]/esx_service

Manually

Installation

  • Add this to your server.cfg:
start esx_service

Usage

-- Enable service
ESX.TriggerServerCallback('esx_service:enableService', function(canTakeService, maxInService, inServiceCount)

  if canTakeService then
    ESX.ShowNotification('You enabled service')
  else
    ESX.ShowNotification('Service is full: ' .. inServiceCount .. '/' .. maxInService)
  end

end, 'taxi')

-- Disable service
TriggerServerEvent('esx_service:disableService', 'taxi')

Legal

License

esx_service - be in service

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/.