Wysłany: 2020-11-19, 13:55
TheSebaPL
Mod-team
Wiek: 21 Na forum: 3098 dni Posty: 964
Piwa : 3102
Witam, mam problem poniewa? gdy jest ustawiony marker to nie mog? wzi??? skina a gdy na pickup to mog? lecz mi ich nie wy?wietla prosz? o pomoc.
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 ( "onPickupHit" , 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 )
Wysłany: 2020-11-19, 14:00
VVirmex
Sgrypter luja
Wiek: 21 Na forum: 3365 dni Posty: 281
Nick w MP: AxyZ
Piwa : 234
Z tego co wiem to ten problem jest powszechny na ka?dym serwerze - sprawdza?e? czy ID pickupa jest poprawne?
Wysłany: 2020-11-19, 14:03
TheSebaPL
Mod-team
Wiek: 21 Na forum: 3098 dni Posty: 964
Piwa : 3102
VVirmex , tak
local pickup = createPickup ( pos [ 1 ], pos [ 2 ], pos [ 3 ], 3 , 1274 , 2000 )
1274 to jest ID Money icon da?em testowo i w og?le nie wida?.
Wysłany: 2020-11-20, 20:31
VVirmex
Sgrypter luja
Wiek: 21 Na forum: 3365 dni Posty: 281
Nick w MP: AxyZ
Piwa : 234
"TheSebaPL" napisał/a :VVirmex , tak
local pickup = createPickup ( pos [ 1 ], pos [ 2 ], pos [ 3 ], 3 , 1274 , 2000 )
1274 to jest ID Money icon da?em testowo i w og?le nie wida?.
Zero b??d?w db3, tak?
Podpis
Kontakt:
Discord: fluffy.rbx
Wiadomość PW Forum [Odpiszę wtedy, kiedy będę mógł]
Support Team: 26.08.2020 do 04.05.2021 [*]
Tagi: skiny :: pickup
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: