chojnas
Serwerowspomagacz
Wiek: 23 Na forum: 3082 dni Posty: 126
Nick w MP: xChojnas
Piwa : 383
Siemka,
chcialbym Was poprosic o pomoc, a mianowicie chcialbym powiekszyc miejsce w ktorym stoi auto do robienia tuningu, lecz nie wiem gdzie ise to robi. Pomzoe ktos? Daje repke i Warke
local stanowiskaSwiatla = {
stanowiskoDoherty ={
mpos ={ 1781.47 ,- 1933.86 , 13.39 - 0.7 }, -- marker
cpos ={ 1778.44 ,- 1925.32 , 13.65 , 359.9 , 360.0 , 179.3 , 2 }, -- cuboid
job_id = "Tuner-SF" , -- ( id ) frakcja kt ? ra b ? dzie mia ? a dost ? p
text = "Monta? tuningu"
},
}
niewspiera_tuningu = {
[ 503 ] = true ,
}
for i , v in pairs ( stanowiskaSwiatla ) do
v . cuboid = createColCuboid ( unpack ( v . cpos ))
v . marker = createMarker ( v . mpos [ 1 ], v . mpos [ 2 ], v . mpos [ 3 ]- 0.60 , "cylinder" , 1.5 , 0 , 50 , 205 , 50 )
setElementData ( v . marker , "marker:duty" , v . job_id )
setElementData ( v . marker , "marker:cuboid" , v . cuboid )
t = createElement ( "text" )
setElementData ( t , "name" , v . text )
setElementPosition ( t , v . mpos [ 1 ], v . mpos [ 2 ], v . mpos [ 3 ])
addEventHandler ( "onMarkerHit" , v . marker , function( el , md )
if getElementType ( el )~= "player" then return end
local cs = getElementData ( source , "marker:cuboid" )
if not cs then return end
local job = getElementData ( source , "marker:duty" )
local ljob = getElementData ( el , "player:duty" )
if job ~= ljob then
outputChatBox ( " Nie jeste? zatrudniony w tym warsztacie." , el , 255 , 0 , 0 )
return
end
local vehicles = getElementsWithinColShape ( cs , "vehicle" )
if #vehicles < 1 then
outputChatBox ( " Na stanowisku monta?u nie ma ?adnego pojazdu." , el , 255 , 0 , 0 )
return
end
if #vehicles > 1 then
outputChatBox ( " Na stanowisku monta?u jest zbyt du?o pojazd?w." , el , 255 , 0 , 0 )
return
end
if getElementHealth ( vehicles [ 1 ]) < 900 then
outputChatBox ( " Pojazd jest zbyt uszkodzony aby zamontowa? ?wiat?a." , el , 255 , 0 , 0 )
return
end
if niewspiera_tuningu [ getElementModel ( vehicles [ 1 ])] then outputChatBox ( "* Tego pojazdu nie mozesz tuningowa?!" , el ) return end
triggerClientEvent ( el , "pokazPanelTuningu" , el , vehicles [ 1 ])
end )
end
local t = createElement ( "text" )
setElementData ( t , "name" , "Pieni?dze za tuning s? pobierane automatycznie przez system!\nJe?li kto? cie oszuka zg?o? to do ADMINA!" )
setElementPosition ( t , { 1778.44 ,- 1925.32 , 13.65 )