pickupSkin = { -- x, y, z, model, respawn, ammo, blipID, skin
[1] = {2852.37427, 846.45471, 11.11250, 3, 1275, 0, 0, 21, 15}, -- en sondaki skin ID
[2] = {2844.16895, 844.25629, 10.75000, 3, 1275, 0, 0, 22, 12},
}
for _, data in pairs(pickupSkin) do
local x, y, z, type, model, respawn, ammo, blipId, skin = data[1], data[2], data[3], data[4], data[5], data[6], data[7], data[8], data[9]
pickup = createPickup(x, y, z, type, model, respawn, ammo) -- pickup oluştur
blip = createBlipAttachedTo ( pickup, blipId ) -- pickupa blip yapıştır
addEventHandler("onPickupHit", pickup, function(element) -- oyuncu pickupa girdiğinde
setElementModel(element, skin) -- oyuncunun modelini belirtilen skin yap
end)
end