samp.directory
← Betikler ve kütüphaneler

wweziza/SAM-scoreboard

SA-MP scoreboard for FiveM

Araç★ 0Tem 2024 güncellendiLisans yokLua
GitHub’da aç

Bu deponun lisans dosyası yok. Okumak için herkese açık, ama bu tek başına yeniden kullanma izni vermez.

README.md

SAM scoreboard

SA-MP scoreboard for FiveM, you can adjust it anywhere.

Usage

It's plug and play, just make sure to ensure it on your server.cfg. Press 'Y' to show the scoreboard and for closing it, you can adjust it later in configuration or just edit the script (for now)

Callback

Every functions trigger server event called

AddEventHandler('SAM-scoreboard:Server:onScoreboardPlayerClicked', function(clickedPlayerId, clickedPlayerName, clickedPlayerPing)end)

You can listen the event in any other resource by adding this on your any resource files (make sure you put the SAM-scoreboard in top of your resources that you want to listen to)

RegisterNetEvent('SAM-scoreboard:Server:Custom:onScoreboardPlayerClicked')
AddEventHandler('SAM-scoreboard:Server:Custom:onScoreboardPlayerClicked', function(clickedPlayerId, clickedPlayerName, clickedPlayerPing)
    -- Handle the event here
    print("Received player click event in Example resource. Player ID: " .. clickedPlayerId .. ", Name: " .. clickedPlayerName .. ", Ping: " .. clickedPlayerPing)
end)

TODO

Configuration for the job, factions or gangs (it will give the player specific color based on their jobs or factions)

Feel free to open an issue, and contribute are welcomed.

esxfivefivemgtasagtavqbqbcoreqbcore-frameworksa-mpsamp

Bu sayfa GitHub’ın depo hakkında yayımladıklarından oluşturulur. samp.directory kodu barındırmaz. Bu ilanla ilgili bir sorun bildir