I have used many resources from this forum and other sites, so I share my first mod with whoever may be interested, in a certain part I feel indebted to the community
In short, a resource to enable street fights with a custom ring. Easily configurable and scalable.
All the instructions are in the github repository:
I press ‘E’ to join the blue or red side but nothing happen. The bet point work fine but the ponit to joint the fight not working. Can someone help me please?
You need to use es_extended (ESX), if already have it, any errors on F8 or server console?
Same code is working on my own server, anyone can join and try it there:
Pecado City (with xex_streetfight): Join
I’m running es_extended 1.2.0 and latest server artifacts (2967)
My fault, optimizing the release I made a mistake. Fixed on GitHub.
If you want to update the code:
function countdown()
local actualCount = 0
for i = 5, 0, -1 do
actualCount = i
Citizen.Wait(1000)
end
showCountDown = false
actualCount = 0
if participando == true then
SetPedMaxHealth(PlayerPedId(), 500)
SetEntityHealth(PlayerPedId(), 500)
end
end
For:
local actualCount = 0
function countdown()
for i = 5, 0, -1 do
actualCount = i
Citizen.Wait(1000)
end
showCountDown = false
actualCount = 0
if participando == true then
SetPedMaxHealth(PlayerPedId(), 500)
SetEntityHealth(PlayerPedId(), 500)
end
end
It is working on my server right now. I use the map without problems, but it is separate to be able to change it for any of the existing ring maps. Just remove the ring and change the coordinates on the resource.
For those who do nothing when pressing E, I repeat that ESX is essential. If you have any errors, report the error in F8 and the server console.
You are absolutely right, preparing the upload took me longer than I expected, and when I went to look for the map that I remembered having downloaded from GTA mods I did not find it, in a quick search in the forum either so in principle I did not put anything. There is no excuse, thank you very much