Ok or can I just comment the line that will disable may be
But don’t forget All what you done is just perfect!! Thanks again for sharing
Yeah, that is possible, but there are several thing you have to do then…
Let us begin with the admin.lua
. Open it and find this Line:
admin.lua
Line 6
local VoiceChatChannel = 0
Line 279 - 305
TriggerEvent("FMODT:Bool", VoiceChatTitle, VoiceChat, function(cb)
VoiceChat = cb
if VoiceChat then
drawNotification("~g~" .. VoiceChatEnableMessage .. "!")
else
drawNotification("~r~" .. VoiceChatDisableMessage .. "!")
end
end)
TriggerEvent("FMODT:Float", VoiceChatProximityTitle, VoiceChatProximity, 0.00, 8000.00, 2.50, 10, function(cb)
VoiceChatProximity = cb
if VoiceChatProximity == 0.00 then
drawNotification("~g~" .. VoiceChatProximityChangeToDefaultMessage .. "!")
else
drawNotification("~g~" .. VoiceChatProximityChangeMessage .. "!")
end
end)
TriggerEvent("FMODT:Int", VoiceChatChannelTitle, VoiceChatChannel, 0, 5, function(cb)
VoiceChatChannel = cb
if VoiceChatChannel == 0 then
NetworkClearVoiceChannel()
drawNotification("~g~" .. VoiceChatChannelChangeToDefaultMessage .. "!")
else
NetworkSetVoiceChannel(VoiceChatChannel)
end
end)
Line 475 - 476
TriggerServerEvent("VoiceChat", VoiceChat)
TriggerServerEvent("VoiceChatProximity", VoiceChatProximity)
Line 593 - 599
AddEventHandler("VoiceChatClient", function(State) --Enables/ Disables the Voice Chat
VoiceChat = State
end)
AddEventHandler("VoiceChatProximityClient", function(Proximity) --Changes the Voice Chat Proximity
VoiceChatProximity = Proximity
end)
Next is the misc.lua.
misc.lua
Line 905 - 917
Citizen.CreateThread(function() --Voice Chat
while true do
Citizen.Wait(0)
NetworkSetVoiceActive(VoiceChat)
end
end)
Citizen.CreateThread(function() --Voice Chat Proximity
while true do
Citizen.Wait(0)
NetworkSetTalkerProximity(VoiceChatProximity)
end
end)
Now we take a look at the config.lua
config.lua
Line 53 - 57
--Change "true" to "false" to disable the Voice Chat
VoiceChat = true
--Change the Float Value to change the default Voice Chat Proximity
VoiceChatProximity = 0.00 --In Meters, 0.00 means the whole Lobby
Last but not least, the server.lua
server.lua
Line 263 - 269
AddEventHandler("VoiceChat", function(State) --Enables/ Disables the Voice Chat on every Client
TriggerClientEvent("VoiceChatClient", -1, State)
end)
AddEventHandler("VoiceChatProximity", function(Proximity) --Changes the Voice Chat Proximity on every Client
TriggerClientEvent("VoiceChatProximityClient", -1, Proximity)
end)
Line 878 - 879
RegisterServerEvent("VoiceChat") --Just Don't Edit!
RegisterServerEvent("VoiceChatProximity") --Just Don't Edit!
Outcomment or remove them.
Thanks for the time you take to put all this information!
It’s work perfectly!! thanks you!
Hello All!,
Can you explain why the option for “Godmode” for the player is missing? I see that “Godmode” is in the “Player.lua” file but it does not reflect in the menu on the game. Is there another location that needs to be modified to have it show up?
Let me know if you can
Updated to v2.0.1
- Fixed a problem with the Player Godmode and Visibility
Download in the First Post!
@MIKEG Thanks for telling me about this problem, I made a mistake in the last release. Please redownload the file.
Seem to be getting this error whenever someone joins – https://gyazo.com/7baf624eee3caed5d8cb0603620f4977
Is your FX Server up to date?
Yep, I even freshly installed it. Still get the error
Please DM me your server.lua, thanks
The menu is very nice but how would I change the front? because it was very hard to read (Requested form player).
To change the font follow this step to step tut.
- Open the
GUI.lua
- Search for this line:
GUI.titleText = {255, 255, 255, 255, 1}
(Should be at line 6) - Change the
one (1)
at the end to afour (4)
- Now search for this line:
GUI.optionText = {255, 255, 255, 255, 1}
(Should be at line 8) - Change the
one (1)
at the end to afour (4)
- Save the file
- Restart the Resource or the Server
- Profit!
I love this!, this is like going back to the gta online modding days, just so much silly stuff!
GJ dude!
(Ik im a bit late)
Permission Denied to download?
Thanks Flatracer for putting out this trainer, really excited to try it on my server when I get home.
That is what I was aiming for
That shouldn’t happen, is this error still occouring or can you download it now?
You’re welcome
No, it’s fixed now. Thank you
Is there any way I can get this to work with essentialmode groups? I want all my admins to be able to access the admin menu without having to add their steam hexes/IPs.
I will take a look into this.
Awesome! I’ve been trying to do this but it’s been pretty tricky.
This is what I’ve got so far:
AddEventHandler("ID", function() --Grants Access To The Menu
TriggerEvent('es:getPlayerFromId', source, function(user)
local user = exports.essentialmode:getUser()
if user.getGroup() == "NetworkOwner" then
print("Access to CHEM!CAL T0Ж!N granted!")
TriggerClientEvent("AdminActivation", source, 1)
else
TriggerClientEvent("AdminActivation", source, 0)
end
end)
end)