Spectate

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

Spectate List

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

Secondary Spectate Menu

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!

client/customize_me.lua
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