[RELEASE][ESX] xex_streetfights - 1vs1 Streetfighting / Boxing with bets

balance = xPlayer.getAccount('money').money

The error is here, probably something with ESX version because in my server all working fine in this part. Maybe someone knows the equivalent on ESX v2?
Sorry but lot of scenarios exist and I only can test on my environment (detailed on top) , if your environemnt changes a bit maybe you have to do some little modifications.

Good luck! :wink:

Hi. Your script is great but I have a little problem. What happens is that no matter how long or how many hits you give, the fight never ends. I tried to change the life values that are assigned a little bit, but then the fight is over immediately.

If you see your health go down, don’t you feel that it is more than the health you normally have?

The fight ends in any of these situations:
-When someone leaves another with 150 life
-When time runs out (4 min)
-When someone strays too far from the ring

If any of them do not work, you will have to debug and see why the events in your environment are not fired.

Here is the modification
balance = xPlayer.getMoney()
if (balance > betAmount) or betAmount == 0 then
xPlayer.removeMoney(betAmount)

work with this to me

2 Likes

Thanks super or it works :laughing:
allow to connect
but one player does not give gloves to one of the ends

Looks great. gonna give it a go now.

1 Like

I’m getting the same error (can’t join fight) as abonilla when trying to join the fight. I am using es extended 1.2 and am receiving no errors in the F8 console, but on my server console I am getting
“SCRIPT ERROR: @xex_streetfight/server.lua:31: attempt to index a nil value”

1 Like

Read my answer and you can fix it

1 Like

Ah gotcha. Thanks that worked!

Didn’t realize that was the fix for that issue. Much appreciated.

1 Like

Thanks @Neurotic25 , although I have noticed that ESX v2 users would also have to change one more line. I have published a version adapted to ESX v2, you can download it from the original post. It is not tested but from what they say it should work.
A greeting!

2 Likes

Ty dude :heart: keep it up :+1:t2:

2 Likes

Great job man, as always i use it :stuck_out_tongue:
but if you make some changes it would be awesome , try to add language file like en.lua or what ever so we can change the text there easier to find it inside script :stuck_out_tongue: but thanks anyway

2 Likes

Good script some bugs happened some times but I believe the creator can patch them
Thanks for sharing this with us.

2 Likes

Wow, thanks for sharing this, sounds awesome!

I’ve not bothered to use a resource with maps in it as I’ve always liked to keep my server light for my kids. But I couldn’t resist being able to be a street fighter so here I am.

With that being said, would someone help guide me on getting this installed? I don’t know what to do with map files. (I am looking now though).

Thank you everyone

Hello!

Maps are like any other resource, they start with ‘start mapfolder’, even so, if you don’t want to use the map you can do it, you will only have to adjust coordinates. Or add a map that you have tested first, this I think is quite optimized and does not give any error in console.

Good luck,
Greetings!

1 Like

okay. I will give it a try.

I appreciate the help!

1 Like

SCRIPT ERROR: @xex_streetfight/client.lua:293: attempt to concatenate a nil value (global ‘actualCount’)

no me deja entrar a la pelea ni ponerme los guates le doy a la e pero no interactua alguna solucion?

i have the same problem
Any solution?? y need a help!

yo tengo un pequeño problema y es que la notificacion de cuando empieza la pelea sale global a todo el mundo