[Release] Solo Session Message [fax-solo-msg] [1.1]

Solo Session Message By FAXES

About
The aim of Solo Session Message is for when a player solo / split sessions a message will be displayed on screen. This was requested as Solo Kick kicks the player and some wanted just a simple message.

In the Download

__resource.lua
client.lua
server.lua


Requirements
None. This is a standalone script.

Downloads:

Change-Log(s)


Installation
Place in your resources folder, just like any other resource.

Credits
@dibzer for being apart of my Official Community Testers

If you have any issues or comments please put them below. :grinning:

9 Likes

Killlllllllllllin the game lately man! Thank you for allowing us to test out these amazing resources <3

1 Like

What is the chance of i made nearly the same Script today, just with Chatmessage ahah xd
Awesome Release +1 :))

2 Likes

So if someone is in a lobby by them self the message still appears?

if serverPlayerNumber-clientPlayerNumber > 4 then 
	TriggerClientEvent("FaxSM:SendMessage")
end

1 - 1 is not > 4 so no. There are better ways for checking for “sessioned” players tho.

2 Likes

i was using solokick on my server but stoped because it was kicking people who were not in there own session… :confused:

Shouldn’t line 9 of server.lua have the source passed to the client event?

Can you tell us any better checking?

I think it should actually

1 Like

Update 1.1

  • Edited some code in the server.lua (added source, Thanks to @SaltyGrandpa for finding this).
2 Likes

Finally updated the OP with new direct and added change-log section

2 Likes

there is an error… shouldn’t source be called AFTER the “name of event handler”?

like TriggerClienEvent(“name of event”, source)

It will still work.

I actually tested it. Someone solo session-ed on one of my testers servers and it worked

2 Likes

alrighty then :slight_smile: thanks :slight_smile:

1 Like

Not workin for me, i was in sessioned on my full serwer :frowning:

But how can we fix that solo session error? What should I delete?

FiveM added this into the game by default!!!