Spectate
A list of players you can spectate, with the ability to start or stop spectating a player.

While spectating a player, an additional menu provides in-depth data about the player’s (ped)

Customizing data
rbStaff/client/customize_me.lua: Inside this file you will find this function "getSpectatePlayerData", if you want to change the information in the menu above its here!
function getSpectatePlayerData(id, player, ped)
local data = {}
data.list[#data.list+1] = {
label = "ID",
value = id,
}
data.list[#data.list+1] = {
label = "Health",
value = GetEntityHealth(playerPed),
}
data.list[#data.list+1] = {
label = "Armor",
value = GetPedArmour(playerPed),
}
data.list[#data.list+1] = {
label = "Stamina",
value = GetPlayerStamina(player)
}
data.list[#data.list+1] = {
label = "Weapon",
value = WEAPON_NAMES[GetSelectedPedWeapon(playerPed)],
}
return data
end
Last updated