Welcome back dopo much tempo! Vi ero mancato eh…
By KingRich, italian scripter. Thanks for chi lo installa on his server.
esx_rich_effects
Working with onesync infinity.
This script allows you to set up a mixer and set various visual effects. (see video to understand better). All effects and mixer positions are changeable including angles and much more. You can add other effects as well. If you want to do a concert on your RP server this is the script you need.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Can you explain the entire process to get something like how it was in the video? Did the DJ use a script for music or played through mic like soundboard?
RegisterServerEvent(‘esx_rich-dext_effect:syncServer’)
AddEventHandler(‘esx_rich-dext_effect:syncServer’, function(dict, name, pos, dur)
local xPlayers = ESX.GetPlayers()
for i = 1, #xPlayers, 1 do
TriggerClientEvent(‘esx_rich-dext_effect:syncClient’, xPlayers[i], dict, name, pos, dur)
end
end)
I think is the same, i have two version of this…
The esx “method” (local xPlayers = ESX.GetPlayers) check only the players who have already been joined with skin to the server and not who is also still logging into the server…
I would have put the method I quoted for it to be standalone on all cores but knowing that on the client side you use the esx menu it is useless I’m not sure if it’s a good idea to use the same method as the one I’ve mentioned, but I’m not sure if it’s a good idea to use the same method as the one I’ve mentioned, so I’m not sure if it’s a good idea to use the same method as the one I’ve mentioned.
Personally I use this on the server side as I am not on esx but a personal core and on the client side I put it under the “Warmenu” instead of the esx menu .
That’s why I wanted to know if the method —> TriggerClientEvent(‘esx_rich-dext_effect:syncClient’, -1, dict, name, pos, dur)
Would be more optimized or not than this one
RegisterServerEvent('esx_rich-dext_effect:syncServer')
AddEventHandler('esx_rich-dext_effect:syncServer', function(dict, name, pos, dur)
local players = GetPlayers()
for i = 1, #players do
TriggerClientEvent('esx_rich-dext_effect:syncClient', players[i], dict, name, pos, dur)
end
end)