givePlayerMedals(player)
{
player thread maps\mp\gametypes\_hud_message::hintMessage("^1Unlocking all medals, please wait...");
player giveAllMedals();
player thread maps\mp\gametypes\_hud_message::hintMessage("^2All medals successfully unlocked!");
}
giveAllMedals()
{
medalNames = getAllMedalNames();
foreach(medalName in medalNames)
{
giveMedal(medalName, 1337);
}
}
giveMedal(dataName, desiredValue)
{
self addPlayerStat(dataName, desiredValue);
/*currentValue = self.pers[dataName];
if(currentValue < desiredValue)
{
increment = desiredValue - currentValue;
if(increment <= 0)
{
return;
}
self addPlayerStat(dataName, increment);
self.pers[dataName] += increment;
}*/
}
getAllMedalNames()
{
tableName = tableLookupFindCoreAsset("mp/statsmilestones3.csv");
startingRow = 2;
rowsCount = 188;
medals = [];
groupColumn = 3;
namesColumn = groupColumn + 1;
for(rowIndex = startingRow; rowIndex < startingRow + rowsCount; rowIndex++)
{
group = tableLookupColumnForRow(tableName, rowIndex, groupColumn);
if(group == "global")
{
name = tableLookupColumnForRow(tableName, rowIndex, namesColumn);
medals[medals.size] = name;
}
}
return medals;
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.