esx_service

MLO-uri, interioare, hărți optimizate și asset-uri pentru stream.
Post Reply
User avatar
greenie
Full Member
Full Member
Posts: 4444
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Da

esx_service

Post by greenie »

https://github.com/esx-framework/ESX-Le ... sx_service

ESX Service is a basic script, that allows for on/off duty switching for players. It is a simple script that can be used for any type of service, such as police, ambulance, taxi, etc.

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')
𝑴𝒂𝒚𝒃𝒆 𝒕𝒉𝒆 𝑬𝒂𝒓𝒕𝒉 𝒊𝒔 𝒕𝒉𝒆 𝑯𝒆𝒍𝒍 𝒐𝒇 𝑨𝒏𝒐𝒕𝒉𝒆𝒓 𝑷𝒍𝒂𝒏𝒆𝒕... ☢️

✅ GAZDUIRE JOCURI / VPS / GAZDUIRE WEB / SERVERE DEDICATE - Stock NELIMITAT / Valabil comandati pe https://www.zonek.ro/
Post Reply

Return to “Server Resources”