working perfectly fine thanks very much for your help.
can i change time and weather in the server for everyone connected ?¿
working perfectly fine thanks very much for your help.
can i change time and weather in the server for everyone connected ?¿
Yes, that is possible.
Open the config.lua
, find this WorldAndNoClipOnlyAdmins = false
and change false
to true
. Afterward you as an admin can change the weather and time for every client.
Thanks for the new realse
How can I diseable the Voice-chat from your script.
I mean we use the voice parameter from the game and we prefer to use it.
As the player can select whisper, normal, scream
thanks for helping!
It is not easy to completly remove it but I will do so in the next version of the trainer if you want me to do it.
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:
local VoiceChatChannel = 0
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)
TriggerServerEvent("VoiceChat", VoiceChat)
TriggerServerEvent("VoiceChatProximity", VoiceChatProximity)
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.
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
--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
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)
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
@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.
GUI.lua
GUI.titleText = {255, 255, 255, 255, 1}
(Should be at line 6)
one (1)
at the end to a four (4)
GUI.optionText = {255, 255, 255, 255, 1}
(Should be at line 8)
one (1)
at the end to a four (4)
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