i'm not good in the table...
try this :
local pickup = {
[1] = { 2251.99, 2489.39, 10.99, 1, 25, 10000, 60 },
[2] = { 2295.36, 2461.00, 1082, 0, 100, 10000, 60 }
}
for _, p in ipairs ( pickup ) do
police = createPickup ( p[1], p[2], p[3], p[4], p[5], p[6], p[7] )
end
function pickupHit( player )
if not (getElementModel( player ) == 29 or 181) then
cancelEvent()
end
end
addEventHandler ( "onPickupHit", police, pickupHit )