[Release] Chat Roles [UPDATED 5/30/18] [Tutorial Released]


#167

Im working on it so it would be MySQL based


#168

Also, I did help fix it, I do not have the messages anymore or id show you but it was also removed by the orig author.


#169

How do we find the steam ids


#170

@590Gaming Use a site like this: https://steamidfinder.com/ just enter the profile URL into the text box and click ‘get steamID’


#171

Where do u get the profile URL and what if they don’t have steam


#172

Their profile URL is the URL at the top of the page when you’re viewing their profile.

Then you can’t get a steam ID for them, can you? Instead, use another Identifier (I think @Vespura has a resource that prints users identifiers when they join a server).

Edit: Found it for you, love me yet? :stuck_out_tongue: WhatsMyId? | Player Identifier Finder


#173

Some servers require you to atleast have steam open before joining. Steam is free so this shouldn’t be an issue. And to get the profile URL just go to their profile on steam and right click on their picture, then click ‘copy profile url’ (or something like that), then paste it inside the text box.


#174

Thx @Havoc Nx @Indominus


#175

Wrong… You need HEX ID not steam id


#176

@JayJayAuto

image

He was asking for SteamID’s… Not HEX.


#177

Wtf even is a “HEX ID”? Is this a new identifier that’s just been added?

On a more serious note, there’s no “HEX ID”. What you’re talking about is the Steam64 ID but, in a Hexadecimal format instead of decimal.


#178

Thats what i meant my bad… (Hexadecimal)


#179

please tell me how to get that steam id without server console because command “stats” it’s not working


#180

The command is “status” in rcon not “stats”


#181

@Alexandru_Stoicea ^


#182

thanks, i found another way :slight_smile:


#183

Hi guys ! How i can make this script to use by groups?
Ex: superadmin
In chat ex: " Superadmin | Roly: blablabla "


#184

Where do u put the file .lua?


#185

Hey
i have the issue that iam all the time only an civilian.
i can add my steam HexID or my ip or both of them. Iam still civilian.

iam tryin this on FXserver.
is there any fix for it.
ive dont all like in the tutorial.

here is the script=

— DO NOT REMOVE ME FROM THE CONFIG, ITS THERE TO GIVE ME CREDIT WHEN I JOIN SERVERS.
— DO NOT REMOVE ME FROM THE CONFIG, ITS THERE TO GIVE ME CREDIT WHEN I JOIN SERVERS.
— DO NOT REMOVE ME FROM THE CONFIG, ITS THERE TO GIVE ME CREDIT WHEN I JOIN SERVERS.
— DO NOT REMOVE ME FROM THE CONFIG, ITS THERE TO GIVE ME CREDIT WHEN I JOIN SERVERS.
— DO NOT REMOVE ME FROM THE CONFIG, ITS THERE TO GIVE ME CREDIT WHEN I JOIN SERVERS.

local Director = {“steam:110000105BAC5AD”}
local Admin = {“steam:”}
local HighwayPatrol = {“steam:”}
local Fire = {“steam:”}
local EMT = {“steam:”}
local Sheriff = {“steam:”}
local Moderator = {“steam:”}
local StateTroopers = {“steam:”}
local Test = {“steam:”}
local ScriptCreator = {“steam:110000108ce69e8”}

AddEventHandler(‘chatMessage’, function(Source, Name, Msg)
args = stringsplit(Msg, " ")
CancelEvent()
if string.find(args[1], “/”) then
local cmd = args[1]
table.remove(args, 1)
else
local player = GetPlayerIdentifiers(Source)[1]
if has_value(Director, player) then
TriggerClientEvent(‘chatMessage’, -1, "Director | " … Name, { 255, 0, 0 }, Msg)
elseif has_value(Admin, player) then
TriggerClientEvent(‘chatMessage’, -1, "Admin | " … Name, { 255, 0, 0 }, Msg)
elseif has_value(HighwayPatrol, player) then
TriggerClientEvent(‘chatMessage’, -1, "Highway Patrol | " … Name, { 0, 0, 255 }, Msg)
elseif has_value(Fire, player) then
TriggerClientEvent(‘chatMessage’, -1, "Fire | " … Name, { 0, 0, 255 }, Msg)
elseif has_value(EMT, player) then
TriggerClientEvent(‘chatMessage’, -1, "EMT | " … Name, { 0, 0, 255 }, Msg)
elseif has_value(Sheriff, player) then
TriggerClientEvent(‘chatMessage’, -1, "Sheriff’s Department | " … Name, { 0, 0, 255 }, Msg)
elseif has_value(Moderator, player) then
TriggerClientEvent(‘chatMessage’, -1, "Moderator | " … Name, { 0, 255, 247 }, Msg)
elseif has_value(StateTroopers, player) then
TriggerClientEvent(‘chatMessage’, -1, "State Troopers | " … Name, { 222, 0, 255 }, Msg)
elseif has_value(Test, player) then
TriggerClientEvent(‘chatMessage’, -1, "State Troopers | Admin " … Name, { 222, 0, 255 }, Msg)
elseif has_value(ScriptCreator, player) then
TriggerClientEvent(‘chatMessage’, -1, "Chat Roles Creator | " … Name, { 0, 255, 43 }, Msg)
else
TriggerClientEvent(‘chatMessage’, -1, "Civilian | " … Name, { 235, 214, 51 }, Msg)
end

end

end)

function has_value (tab, val)
for index, value in ipairs(tab) do
if value == val then
return true
end
end

return false

end

function stringsplit(inputstr, sep)
if sep == nil then
sep = “%s"
end
local t={} ; i=1
for str in string.gmatch(inputstr, “([^”…sep…”]+)") do
t[i] = str
i = i + 1
end
return t
end

pls help out with this bug.

Do i need some other script or something else?


#186

Your Hex ID can not have any caps, correct it to have lowercase only