Hello, “World”!
Guys, I probably do not understand how to include system resources, but I understand their codes.
Can you please tell me how to use the system resource “kills”, which is responsible for notifying the killings on the server and that it works fine?
Thank you in advance.
Sorry for the bad knowledge of English…
I saw it on the source code server. And it became interesting how to use it.
You can use (cl & sv side)
AddEventHandler("baseevents:onPlayerDied", function(player, reason, pos)
end)
or
AddEventHandler("baseevents:onPlayerKilled", function(player, killer, reason, pos)
end)
I was at a loss, I did not understand which line it should be inserted.
You can use both in your Client.lua and Server.lua,
The difference is what you put inside the body
IE:
TriggerEvent(‘chatMessage’)
TriggerClientEvent(‘chatMessage’)
Hey. How to activate sounds from online with the SetAudioFlag command? Can I have a whole script, please?
https://runtime.fivem.net/doc/reference.html#_0x7FF4944CC209192D
PLAY_SOUND(-1, "CANCEL", "HUD_MINI_GAME_SOUNDSET", 0, 0, 1);
https://runtime.fivem.net/doc/reference.html#_0xB9EFD5C25018725A
SET_AUDIO_FLAG("ActivateSwitchWheelAudio", true);
Read the natives please…
what is for the ped killing?
can somebody share the script for kill feed because im going crazy and i dont understand how this can be implemented in one sync server
Just put it in like it’s not OneSync and do a loop alteration for function GetPlayerByEntityID(id). 32 is no longer the max in your OneSync server most likely, so read up on the FiveM announcements for how to change this for OneSync servers. Digging around is how you become a better developer, so have fun!