[Release] FiveM-BanSql

@AlexGarcio
I have a mistake on my side.

Iā€™m having the same error as @ItzikNossette

@ItzikNossette & @Matzbear Fixed

@AlexGarcio
Same problem after update :cry:

hey, after looking for a fix @ItzikNossette , @Matzbear
you would send us this :

-- checking for the issue number to string 
	print (target)
	print (servertarget)


let us know the answer from your cmd !!

@Turnox

i keep getting this error when i try to ban someone

SCRIPT ERROR: @fivem-bansql/server.lua:578: attempt to concatenate a nil value (global ā€˜xblid1ā€™)
handler (@essentialmode/server/main.lua:190)
handler (@chat/sv_chat.lua:27)

@mastersammie itā€™s fix.

thx fixed it

1.0.9 Steam no more require & Anti-Cheat Compatible

To update from older version you have to drop the 3 sql table

Add Event to be self ban for anti-cheat use
Add Anti-Cheat event call from server side can choose player to ban
Add Event demo for anti-cheat use
Edit Rework discord message
Edit Steam is no more require but stay compatible
Edit License is not used as primary info
Edit Improve french translation by @EagleOnee
Edit Improve english translation by @Zeemahh
Edit Code cleaning&optimisation
Fix Sql canā€™t be load
Fix Fix nil value (global ā€˜xblid1ā€™) at line 578

Is it posible to make the commands usable from the server console? Would make it easy to ban someone from my phone when i get an discord anticheat warning.

Guys when I trigger this event from my server :TriggerEvent(ā€œBanSql:ICheatā€, ā€œAuto-Cheat Custom Reasonā€,TargetId) events I wil get this error:
SCRIPT ERROR: @FiveM-BanSql/server.lua:232: attempt to compare number with string

Does anyone know how to fix this?

@QUWASH itā€™s fix in 1.0.9a

@Matzbear console command are add you can try it here

1 Like

This is working great for me and my server but I canā€™t figure out one thing.

When I try the command /sqlsearch to get someoneā€™s permid and try to search someoneā€™s name it keeps giving me ā€œBanlist: The Specified Name Is Not Validā€

Iā€™ve tried 3 things.

  • Running someoneā€™s name who is online and has never been SQLBanned
  • Running someoneā€™s name who is offline and has never been banned
  • Running someoneā€™s name who is offline and was perm banned using /sqlban

and I keep getting that same error message.

Can the dev or any users of this script give me some insight on why this may not be working?

  • Brad

sqlsearch are case sensible.
If you search alex but my name is Alex you donā€™t find me.
But if you search Ale or lex you find Alex

If i ban someone only i see this ban message how i can do at all players see that message ?

Does anyone know how to make it appear in the text box? What i mean is the SQL function works but it says that it is not a valid command and it doest appear in the text box explaining what to do.

In the two photos you can see how sqlban doesnt have predictive text where as the emotes do for example. How would i change this? Any help will be appreciated :smiley:

Does it work with esx?

Hi, how can I ban a person permanently?, if I set for example 1000 days, It doesnā€™t work, beacuse the days are too many.

0 day = perm ban