Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local skins={
- ["SAPD"]={
- code="SAPD",
- positions={
- {1597.35, -1655.72, -18.31, 39, "SAPD 1", 0, 0, 0},
- {1597.35, -1657.22, -18.31, 65, "SAPD 2", 0, 0, 0},
- {1597.35, -1658.61, -18.31, 82, "Posterunkowy ", 0, 0, 0},
- {1597.34, -1659.97, -18.31, 81, "Posterunkowy 2", 0, 0, 0},
- {1597.35, -1660.97, -18.31, 80, "Posterunkowy 3", 0, 0, 0},
- {1597.35, -1662.05, -18.31, 84, "SAPD\nPosterunkowy 4", 0, 0, 0},
- },
- text="Nie jesteś zatrudniony/a we frakcji:n#bf0101SAPD #FFFFFF(#bf0101San Andreas Police Department#FFFFFF)",
- },
- ["SAFD"]={
- code="SAFD",
- positions={
- {1693.47, -1101.02, 24.08, 279, "SAFD\nStrój Nomex", 0, 0, 0},
- {1693.56, -1098.55, 24.08, 288,"SAFD\nStrój Nomex 2",0, 0, 1},
- {1693.47, -1096.12, 24.08, 238,"SAFD\nStrój Pełnoprawny",0, 0, 1},
- {1695.96, -1095.72, 24.08, 278,"SAFD\nStrój Akademia",0, 0, 1},
- {1698.40, -1095.89, 24.08, 244,"SAFD\nStrój Paramedic",0, 0, 1},
- },
- text="Nie jesteś zatrudniony/a we frakcji:\n#bf0101SAFD #FFFFFF(#bf0101San Andreas Fire Department#FFFFFF)",
- },
- ["SAMD"]={
- code="SAMD",
- positions={
- {1279.60, -1264.16, 9048.13, 276, "SAMD\nStrój pielęgniarza", 0, 0, 1},
- {1277.71, -1264.16, 9048.13, 275, "SAMD\nStrój ratownika medycznego",0, 0, 10},
- {1277.88, -1281.55, 9048.13, 156, "SAMD\nStrój lekarza",0,0,40},
- {1264.34, -1282.48, 9048.13, 156, "SAMD\nStrój dyrekcji",0,0,70},
- {1264.12, -1262.56, 9048.13, 295, "SAMD\nStrój szkoleniowca",0,0,70},
- },
- text="Nie jesteś zatrudniony/a we frakcji:\n#bf0101SAMD #FFFFFF(#bf0101San Andreas Medical Department#FFFFFF)",
- },
- ["SARA"]={
- code="SARA",
- positions={
- {767.23, -3806.52, 224.21, 143, "SARA\nStrój Zarządu", 0, 0, 0},
- {771.90, -3786.88, 224.21, 27, "SARA\nStrój",0, 0, 0},
- },
- text="Nie jesteś zatrudniony/a we frakcji:\n#bf0101SARA #FFFFFF(#bf0101San Andreas Road Assistance#FFFFFF)",
- },
- }
- for _,skin in pairs(skins) do
- for _,pos in ipairs(skin.positions) do
- --local pickup=createPickup(pos[1], pos[2], pos[3], 3, 1275, 2000)
- local pickup=createMarker(pos[1], pos[2], pos[3]-1, "cylinder", 1.1, 0, 100, 0, 50)
- setElementData(pickup, 'typ', 'ubranko')
- setElementDimension(pickup,pos[6])
- setElementInterior(pickup,pos[7])
- setElementData(pickup,"p:faction",tostring(skin.code))
- setElementData(pickup,"p:skin", tonumber(pos[4]))
- setElementData(pickup,"p:rank", pos[8] or 1)
- local t=createElement("text")
- setElementData(t,"name",pos[5] or "Skin")
- setElementDimension(t,pos[6])
- setElementInterior(t,pos[7])
- setElementPosition(t,pos[1],pos[2],pos[3]+1)
- end
- end
- addEventHandler("onMarkerHit", resourceRoot, function(el,md)
- if getElementType(el)~="player" then return end
- local faction=getElementData(source,"p:faction")
- if not faction then return end
- local skin=getElementData(source,"p:skin")
- local rank=getElementData(source,"p:rank")
- if not skin then return end
- if not getPlayerFaction(el,faction) or getElementData(el,"player:faction") ~= faction then
- --outputChatBox("#bf0101(✖) #FFFFFF"..skins[faction].text..".", el,255,255,255,true)
- --exports.notification:showBox (el,"info",skins[faction].text)
- triggerClientEvent( el, "onClientAddNotification", el, skins[faction].text, "error" )
- cancelEvent()
- return end
- if rank then
- if rank > getElementData(el,"player:rank") then
- --outputChatBox(skins[faction].text, el)
- --exports.notification:showBox (el,"info",skins[faction].text)
- triggerClientEvent( el, "onClientAddNotification", el, "Twój stopień jest zbyt niski..", "info" )
- cancelEvent()
- return end
- end
- setElementModel(el,skin)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement