View attachment 471100
View attachment 471101
View attachment 471102
*** Hidden text: cannot be quoted. ***
*** Hidden text: cannot be quoted. ***
local target_ids = {
[277179] = 1,
[278349] = 1,
[246191] = 1,
[80674] = 0,
[236772] = 1,
[262881] = 0,
[188545] = 1,
[233419] = 1,
[265600] = 0,
[75156] = 0,
[241486] = 1,
[228702] = 1,
[74463] = 0,
[75068] = 0,
[231747] = 1,
[278399] = 0,
[259716] = 0,
[71998] = 0,
[256079] = 0,
[212831] = 1,
[233731] = 0,
[278455] = 0,
[254803] = 0,
[70824] = 0,
[277427] = 0,
[270964] = 0,
[279731] = 0,
[276278] = 0,
[273599] = 0,
[237692] = 1,
[272602] = 0,
[257289] = 0,
[252042] = 0,
[79402] = 0,
[266032] = 1,
[259399] = 0,
[238074] = 1,
[267976] = 0,
[277432] = 0,
[262105] = 0,
[245155] = 1,
[242964] = 1,
[254243] = 0,
[243702] = 0,
[75087] = 0,
[278923] = 0,
[71351] = 0,
[224987] = 0,
[279202] = 0,
[272926] = 0,
[269859] = 0,
[247090] = 0,
[273651] = 0,
[270208] = 0,
[236015] = 1,
[274246] = 0,
[259356] = 1,
[271975] = 0,
[262842] = 0,
[278928] = 0,
[228093] = 1,
[255611] = 0,
[74544] = 0,
[229237] = 1,
[271579] = 0,
[238041] = 0,
[72159] = 0,
[76687] = 1,
[230899] = 1,
[241850] = 0,
[255253] = 1,
[260592] = 1,
[259070] = 0,
[202652] = 1,
[278813] = 0,
[245367] = 1,
[186942] = 1,
[264699] = 0,
[254840] = 0,
[256325] = 0,
[259197] = 1,
[258490] = 0,
[254796] = 1,
[246139] = 0,
[240277] = 0,
[231677] = 1,
[74462] = 0,
[258890] = 0,
[264728] = 0,
[251954] = 0,
[247678] = 0,
[246871] = 0,
[240638] = 1,
[255001] = 0,
[253124] = 0,
[264240] = 1,
[241788] = 0,
[204525] = 1,
[243014] = 1,
[70448] = 0,
[278237] = 0,
[245741] = 0,
[277797] = 0,
[265188] = 0,
[272725] = 0,
[235152] = 0,
[259584] = 0,
[74866] = 0,
[258648] = 0,
[239482] = 0,
[262113] = 0,
[258378] = 0,
[256420] = 0,
[268763] = 0,
[266866] = 0,
[245371] = 0,
[258485] = 0,
[240225] = 0,
[256402] = 0,
[272829] = 0,
[257186] = 0,
[73562] = 0,
[230670] = 0,
[245037] = 1,
[211110] = 1,
[242816] = 0,
[266236] = 0,
[231352] = 1,
[241736] = 0,
[205812] = 0,
[248729] = 0,
[264298] = 1,
[260247] = 0,
[237383] = 1,
[236764] = 0,
[264388] = 0,
[275436] = 0,
[240913] = 1,
[277327] = 0,
[77354] = 0,
[269233] = 0,
[222737] = 0,
[240243] = 1,
[206517] = 1,
[80376] = 0,
[177003] = 1,
[257711] = 0,
[242879] = 0,
[265650] = 0,
[259789] = 0,
[274616] = 0,
[255303] = 0,
[70966] = 0,
[243311] = 0,
[278394] = 0,
[251223] = 0,
[277537] = 0,
[225663] = 0,
[75055] = 0,
[73078] = 0,
[269701] = 0,
[262657] = 0,
[270050] = 0,
[253072] = 1,
[237646] = 0,
[259913] = 0,
[275507] = 0,
[254022] = 1,
[274952] = 0,
[274699] = 0,
[74896] = 0,
[277908] = 0,
[274915] = 0,
[264697] = 0,
[70497] = 0,
[270077] = 0,
[235794] = 1,
[216814] = 0,
[224031] = 0,
[245370] = 0,
[238160] = 0,
[259163] = 0,
[252508] = 0,
[251873] = 0,
[274569] = 0,
[277869] = 0,
[223273] = 0,
[247229] = 0,
[208165] = 0,
[257785] = 0,
[269262] = 0,
[262218] = 0,
[264220] = 0,
[264257] = 0,
[257353] = 0,
[268804] = 0,
[244728] = 0,
[266160] = 0,
[256104] = 0,
[268439] = 0,
[275138] = 0,
[253109] = 0,
[256782] = 0,
[73580] = 0,
[82853] = 0,
[264702] = 0,
[264188] = 0,
[266312] = 0,
[267881] = 0,
[279808] = 0,
[232873] = 0,
[233152] = 0,
[76449] = 0,
[255981] = 0,
[70651] = 0,
[276839] = 0,
[269728] = 0,
[243630] = 1,
[243580] = 1,
[277846] = 1,
[244260] = 1,
[278046] = 1,
[268438] = 1,
[246321] = 1,
[277954] = 1,
[241461] = 1,
[239053] = 1,
[192505] = 1,
[239380] = 1,
[247257] = 1,
[271574] = 1,
[260592] = 1,
[232730] = 1,
[188545] = 1,
[279173] = 1,
[201399] = 1,
[277643] = 1,
[1212] = 0,
[71418] = 0,
[71599] = 0,
[73078] = 0,
[74395] = 0,
[75437] = 0,
[78012] = 0,
[78596] = 0,
[146741] = 0,
[201269] = 0,
[212321] = 0,
[229699] = 0,
[232278] = 0,
[236885] = 0,
[240359] = 0,
[242725] = 0,
[243491] = 0,
[244050] = 0,
[252036] = 0,
[253181] = 0,
[254982] = 0,
[255145] = 0,
[257866] = 0,
[258485] = 0,
[258769] = 0,
[262045] = 0,
[262500] = 0,
[264160] = 0,
[264195] = 0,
[264687] = 0,
[265544] = 0,
[265577] = 0,
[265902] = 0,
[266797] = 0,
[267200] = 0,
[267209] = 0,
[267214] = 0,
[267235] = 0,
[267247] = 0,
[267250] = 0,
[267276] = 0,
[267283] = 0,
[267286] = 0,
[267305] = 0,
[267314] = 0,
[267343] = 0,
[268259] = 0,
[268428] = 0,
[268505] = 0,
[269123] = 0,
[269292] = 0,
[269701] = 0,
[269962] = 0,
[271579] = 0,
[272453] = 0,
[272718] = 0,
[275050] = 0,
[275328] = 0,
[275765] = 0,
[275922] = 0,
[276969] = 0,
[277526] = 0,
[261195] = 0,
[215223] = 0,
[229891] = 0,
[259480] = 0,
[269164] = 0,
[246548] = 0,
[271019] = 1,
[213516] = 0,
[199641] = 0,
[273018] = 1,
[236772] = 2,
[239301] = 1,
[231478] = 1,
[256500] = 0,
[74449] = 0,
[74142] = 0,
[274559] = 0,
[270821] = 0,
[273748] = 0,
[278228] = 0,
[266039] = 0,
[276680] = 0,
[257400] = 0,
[256725] = 0,
[257289] = 0,
[79399] = 0,
[257711] = 0,
[275029] = 0,
[272505] = 1,
[9000] = 0,
}
local tattoos_left_arm = {
[252042] = 70,
[233419] = 71,
[262881] = 72,
[278923] = 73,
[229237] = 74,
[268438] = 75,
[255475] = 76,
[231936] = 78,
[223959] = 79,
[220697] = 80,
[204525] = 82,
[242530] = 83,
[216409] = 84,
[240638] = 86,
[232656] = 87,
[236772] = 88,
[270409] = 89,
[231677] = 90,
[202652] = 92,
[211110] = 104,
[257711] = 105,
[237383] = 106,
[277797] = 107,
[266866] = 108,
[260247] = 109,
[253072] = 111,
[237646] = 118,
[203376] = 119,
[241461] = 122,
[239053] = 123,
[239380] = 124,
[201399] = 125,
[279173] = 127,
[239301] = 128,
[231478] = 129,
}
local tattoos_right_arm = {
[252042] = 70,
[233419] = 71,
[262881] = 72,
[278923] = 73,
[229237] = 74,
[268438] = 75,
[255475] = 76,
[231936] = 78,
[223959] = 79,
[220697] = 80,
[204525] = 82,
[242530] = 83,
[216409] = 84,
[240638] = 86,
[232656] = 87,
[236772] = 88,
[270409] = 89,
[231677] = 90,
[202652] = 92,
[211110] = 104,
[257711] = 105,
[237383] = 106,
[277797] = 107,
[266866] = 108,
[260247] = 109,
}
local tattoos_left_leg = {
[253072] = 112,
[201399] = 126,
}
local tattoos_right_leg = {}
if next(target_ids) == nil then
MessageBox("No targets", "Add player IDs to target_ids table before running the script.")
return
end
local players_table = LE.db:GetTable("players")
local rec = players_table:GetFirstRecord()
local updated_faces, updated_tattoos = 0, 0
local function remaining_count(t)
local n = 0
for _ in pairs(t) do n = n + 1 end
return n
end
while rec and rec > 0 do
local pid = players_table:GetRecordFieldValue(rec, "playerid")
local pid_num = tonumber(pid) or pid
local variation = target_ids[pid_num]
if variation ~= nil then
players_table:SetRecordFieldValue(rec, "hashighqualityhead", 1)
players_table:SetRecordFieldValue(rec, "headclasscode", 0)
players_table:SetRecordFieldValue(rec, "headvariation", variation)
updated_faces = updated_faces + 1
target_ids[pid_num] = nil
if remaining_count(target_ids) == 0 then
end
end
if tattoos_left_arm[pid_num] then
players_table:SetRecordFieldValue(rec, "tattooleftarm", tattoos_left_arm[pid_num])
updated_tattoos = updated_tattoos + 1
end
if tattoos_right_arm[pid_num] then
players_table:SetRecordFieldValue(rec, "tattoorightarm", tattoos_right_arm[pid_num])
updated_tattoos = updated_tattoos + 1
end
if tattoos_left_leg[pid_num] then
players_table:SetRecordFieldValue(rec, "tattooleftleg", tattoos_left_leg[pid_num])
updated_tattoos = updated_tattoos + 1
end
if tattoos_right_leg[pid_num] then
players_table:SetRecordFieldValue(rec, "tattoorightleg", tattoos_right_leg[pid_num])
updated_tattoos = updated_tattoos + 1
end
rec = players_table:GetNextValidRecord()
end
MessageBox("HQ Faces + Tattoos Applied",
string.format("Faces Updated: %d\nTattoos Updated: %d", updated_faces, updated_tattoos))