Again you didnt follow the tutorial elseif has_value(HighwayPatrol, player) then TriggerClientEvent('chatMessage', -1, "PoliceDepartment | " .. Name, { 0, 0, 255 }, Msg)
You have to change HighwayPatrol to PoliceDepartment You edited the local HighwayPatrol to local PoliceDepartment when you do that you need to edit the elseif has_value(HighwayPatrol, from HighwayPatrol to PoliceDepartment
@JayJayAuto Nope for some reason still wont work nothing at all shows in
chatError running system event handling function for resource rolesFX: citizen:/scripting/lua/scheduler.lua:39: Failed to execute thread: sv_chat.lua:29: attempt to call a nil value (global âhas_valueâ)
stack traceback:
sv_chat.lua:29: in upvalue âhandlerâ
citizen:/scripting/lua/scheduler.lua:124: in function citizen:/scripting/lua/scheduler.lua:123
stack traceback:
[C]: in function âerrorâ
citizen:/scripting/lua/scheduler.lua:39: in field âCreateThreadNowâ
citizen:/scripting/lua/scheduler.lua:123: in function citizen:/scripting/lua/scheduler.lua:92
if theirs a person with no role it should say civ on there of there name but they cant type in chat so they have to do /me. can you help me with this?
Discord :https://discord.gg/64YCeQq
Thanks tombobble
You have a conflicting script, Please check and find what script because its a known issue for a script to conflict with my script preventing you from chatting till you disable said conflicting script.