samp.directory
← Scripts e bibliotecas

wweziza/SAM-scoreboard

SA-MP scoreboard for FiveM

Ferramenta★ 0atualizado jul. de 2024Sem licençaLua
Abrir no GitHub

Este repositório não tem arquivo de licença. Ele é público para leitura, mas isso sozinho não dá permissão para reutilizar.

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

Esta página é montada com o que o GitHub publica sobre o repositório. O samp.directory não hospeda o código. Avisar de um problema com esta página

wweziza/SAM-scoreboard: Ferramenta de SA-MP | samp.directory