Gta V FiveM ESX Community Service

Channel:
Subscribers:
14,000
Published on ● Video Link: https://www.youtube.com/watch?v=ayiTiugYKog



Grand Theft Auto V
Game:
Duration: 1:51
28,732 views
390


[Release] [ESX] ESX_CommunityService
https://forum.cfx.re/t/release-esx-esx-communityservice/464983

If you need FiveM Gameserver with one click installation check this:
https://zap-hosting.com/rpscripts

Wenn ihr ein Gameserver mit schneller FiveM Installation braucht, könnt hier reinschauen:
https://zap-hosting.com/rpscripts

Resource description:
An alternative form of punishment and social correction to jail. With this script, you can now send criminals in the central square, to provide community service by cleaning and gardening. Some say it’s more harsh than jail since citizens get to mock you while you are trying to do your time.
Try to escape it and you will get your service extended!

Features:
Admin commands
You can’t evade service with disconnects.
Trying to escape service will result in service extension.

Installation:
Import esx_communityservice.sql in your database
Add this in your server.cfg :
start esx_communityservice

How to add to policejob menu.
Example in esx_policejob: client/main.lua:

{label = _U('fine'), value = 'fine'},
--add code below (don't forget to add ',' before new row)
{label = "Community Service", value = 'communityservice'}

elseif action == 'unpaid_bills' then
OpenUnpaidBillsMenu(closestPlayer)
-- add code below
elseif action == 'communityservice' then
SendToCommunityService(GetPlayerServerId(closestPlayer))
end

--add this function
function SendToCommunityService(player)
ESX.UI.Menu.Open('dialog', GetCurrentResourceName(), 'Community Service Menu', {
title = "Community Service Menu",
}, function (data2, menu)
local community_services_count = tonumber(data2.value)

if community_services_count == nil then
ESX.ShowNotification('Invalid services count.')
else
TriggerServerEvent("esx_communityservice:sendToCommunityService", player, community_services_count)
menu.close()
end
end, function (data2, menu)
menu.close()
end)
end

#fivem #rpscripts #free #gtav







Tags:
fivem
script
scripts
esx
job
police
community
map
rp
roleplay
gta v



Other Statistics

Grand Theft Auto V Statistics For RP Scripts

There are 6,029,127 views in 322 videos for Grand Theft Auto V. The game makes up 13 hours of published video on his channel, roughly 97.24% of Grand Theft Auto V content that RP Scripts has uploaded to YouTube.