Tematy otagowane jako: interiorze
1. marker w interiorze
Witam pa?stwa, ma kto? pomys? jak ustawi? niewidzialny marker w interiorze?
Problem polega na tym ?e interior znajduje si? pod drog? ( w int word 4 ) i na drodze wida? markery oraz w int wida? je jak sie kamere odpowiednio ustawi. alpha na 0 oraz setElementInterior nic nie daj?.
2. spawn gracza w interiorze
Witam, prosz? o pomoc z skryptem.
Kod: addEventHandler("onClientClick", root, function(btn,state)
if btn=="left" and state=="down" then
w, h = 170, 40
if isMouseIn(sx * 0.5 - w / 2, sy * 0.5 - h / 2 + 70, w, h) and data.showed then
setElementData(localPlayer,"player:spawn",{1726.46, -1631.11, 20.21})
closeZones()
end
if isMouseIn(sx * 0.5 - w / 2, sy * 0.5 - h / 2 + 115, w, h) and data.showed then
setElementData(localPlayer,"player:spawn",{246.62, 112.10, 1003.22})
closeZones()
end
end
end)
Chcia?bym aby po wybraniu tego spawnu ni?ej spawni? si? w interiorze ID: 10 I na tych kordach kt?re s? podane.
Prosz? o pomoc. Daje ka?demu za pomoc.
3. Pro**em z markerem w interiorze
siema. Mam taki problem ?e marker zostaje na ?wiacie 0 ale nie wida? go i tak samo w interiorze. Zmienia?em w setElementInterior lecz to nic nie daje
oto skrypt odpowiadaj?cy za to
Mark = {
{ 291.25513 , - 82.93887 , 1001.51563 - 4 },
}
-- Marker
local Marker1 = createMarker ( 2151.655 , - 1597.19 , 14.345 , "cylinder" , 1.5 , 250 , 250 , 0 )
setElementInterior ( Marker1 , 4 )
setElementDimension ( Marker1 , 0 )
-- Blip
createBlip ( 2151.655 , - 1597.19 , 14.345 , 6 , 0.5 , 0 , 0 , 0 , 0 , 0 , 400 )
for k , v in ipairs ( Mark ) do
z = v [ 3 ] - 1
Marker = createMarker ( v [ 1 ], v [ 2 ], z , "cylinder" , 1.5 , 0 , 0 , 4 , 100 )
addEventHandler ( 'onClientMarkerHit' , Marker ,
function ( hitPlayer )
if ( hitPlayer == localPlayer ) then
guiSetVisible ( GUIEditor . window [ 1 ], true )
showCursor ( true )
end
end
)
end
4. Auta frakcyjne w interiorze
Dobry, chcia?bym zrobi? auta frakcyjne w interiorze ale gdy za?aduje skrypt to auta s? niewidoczne --> https://imgur.com/undefined
Jakich funkcji u?y? ?eby by?o je wida? ?
[lua]addCommandHandler("samc-restarcikser", function(player, cmd)
if getElementData(player, "player:duty") == "SAMC" then
restartResource(getThisResource())
end
end)
local szkolenia = {
{1261.33, -7.82, 1000.80, 359.7, 0.0, 178.9},
{1261.07, -21.53, 1000.80, 359.7, 0.0, 178.9},
}
local karetki_2 = {
{1288.51, -6.85, 1000.79, 359.7, 0.2, 181.7},
{1288.95, -21.45, 1000.79, 359.7, 0.2, 181.7},
}
local karetki = {
{1298.93, -34.62, 1000.79, 359.7, 0.2, 181.7},
{1298.67, -21.29, 1000.79, 359.7, 0.2, 181.7},
{1298.11, -6.31, 1000.80, 359.7, 0.0, 180.0},
}
local helikopter = {
--{-2632.67, 593.42, 66.49, 2.3, 358.1, 182.8},
--{-2646.45, 594.55, 66.29, 0.2, 359.7, 176.6},
-- {-2656.82, 595.04, 66.29, 0.2, 359.7, 176.6},
--{-2669.68, 596.79, 66.29, 0.2, 359.7, 176.6},
--{-2686.54, 597.01, 66.29, 0.2, 359.7, 176.6},
}
local karawany = {
{-2545.12, 658.03, 14.19, 0.0, 0.0, 90},
}
local admiral = {
{1279.65, -35.43, 1000.79, 359.7, 0.0, 180.3},
{1279.57, -21.12, 1000.79, 359.7, 0.0, 180.3},
{1279.49, -7.57, 1000.79, 359.7, 0.0, 180.3},
}
local sultany = {
{1270.49, -7.43, 1000.80, 359.8, 360.0, 180.1, 560},
{1270.58, -21.21, 1000.80, 359.7, 360.0, 180.9, 560},
}
local fbirancher = {
{1253.43, -60....
5. Brak minimapy w inny interiorze
Jak zrobi? zeby w interiorze lub dimensiorze inny ni? 0 nie by?o wida? minimpy i blip?w na mapie.
6. Znika Radar w Interiorze
Witam mam problem, Kiedy wchodze w marker i teleportuje mnie do interiora znika mi radar i nie pojawia sie znowu. Trzeba reconnectnac zeby znowu go widziec.
Cytat: local m = createMarker(2244.38,-1665.56,15.48, "arrow", 1.2, 255, 255, 10, 100)
local b = createBlipAttachedTo(m, 45, 2, 255,0,0,255,0,400)
local m2 = createMarker(207.65, -111.27, 1005.80, "arrow", 1.2, 255, 255, 10, 1000)
setElementInterior(m2, 15)
setElementDimension(m2, 3)
addEventHandler("onMarkerHit", m, function(el,md)
setElementInterior(el, 15)
setElementDimension(el, 3)
setElementPosition(el, 207.737991,-109.019996,1005.132812)
end)
addEventHandler("onMarkerHit", m2, function(el,md)
setElementInterior(el, 0)
setElementDimension(el, 0)
setElementPosition(el, 2245.46,-1661.93,15.47)
end)
-- Co? innego
addEvent("changeSkin", true)
addEventHandler("changeSkin", root, function(model)
setElementModel(source, model)
setElementData(source, "gracz_ubranie", model)
end)
7. Jak wyłączyć muzykę w interiorze
Ustawi?em sobie model pewnego wn?trza nad konkretnym budynkiem i gdy go przenios?em do dimension o numerze 3 to gra w nim muzyka. Czy da si? t? muzyk? jako? wy??czy??
8. marker w interiorze
Jak stworzy? marker w interiorze?
Chcia?bym stworzy? marker w Ammunation 2, ale nie wiem jak to zrobi?. Posi?bym o pomoc.
9. Wyciszenie szumów w interiorze
Na jakim? serwerze widzia?em ?e jak si? wesz?o do jakiego? pomieszczenia to nie by?o s?ycha? szum?w. Jak taki efekt mo?na uzyska?? Dodam ?e by?y to ca?kowicie nowe modele. Przynajmniej takie wra?enie sprawia?y.
10. Napisy 3d w danym interiorze i dimensionie
Co dodac do skryptu zeby byl dany 3d text w danym interiorze i dimensionie?
{ 2226.28 , - 1150.19 , 1025.80 , "PREMIUM:n7" },
11. Pickupy w interiorze oraz dimension'ie
Witam wszystkich.
Mam problem, bo chc? umie?ci? pickupy w danym interiorze + dimension'ie.
Tutaj podaj? gdzie ma by? dany pickup i kod:
PICKUP 1 "Skin s?u?bowy" = 3 interior, 997 dimension,
PICKUP 2 " Skin praktykuj?cy" = 3 interior, 999 dimension,
Kod:
[lua]
pickup = createPickup ( 230, 169, 1003 , 3, 1275, 0, 0 )
addEventHandler ( "onPickupHit", pickup, function(element)
if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( element ) ), aclGetGroup ( "Policja" ) ) then
cywilt = getTeamFromName ( "Policja" )
setPlayerTeam ( element, cywilt )
if getAccountData ( getPlayerAccount ( element ), "stary:skin" ) then
id = tonumber ( getAccountData ( getPlayerAccount ( element ), "stary:skin" ) )
setElementModel ( element, id )
setAccountData ( getPlayerAccount ( element ), "stary:skin", false )
removeElementData(element,"Praca")
takeWeapon(element, 23)
else
skin = tonumber ( getElementModel ( element ) )
setAccountData ( getPlayerAccount ( element ), "stary:skin", skin )
setElementModel ( element, 280 )
local nazwa = "Skin S?u?bowy"
local r,g,b = 0, 89, 255
setElementData(element,"Praca",nazwa)
setElementData(element,&...
12. Koszulka ze skinem w interiorze
Witam, tak jak w temacie chodzi o to jak ustawi? koszulke ze jak sie w n? wejdzie to daje nam skina, ale ?eby ta koszulka by?a w interiorze .lua nie ogarno?em jeszcze do ko?ca daj? kod:
pickup = createPickup ( - 1592.7947998047 , 724.53973388672 ,- 4.90625 , 3 , 1275 )
addEventHandler ( "onPickupHit" , pickup , function( element )
setElementModel ( element , 286 )
outputChatBox ( "skin policjanta" , element , 255 , 255 , 255 )
end )
Prosz? o pomoc dam zimne za pomoc
13. Marker w interiorze
Witam chcia?bym zrobi? marker w interiorze,wiem jak zrobic marker, ale w interiorze w?asnie nie i jagby mi ktos napisa? jak to zrobic lub napisa? kod to postawi? bym
Za pomoc
14. Maker w interiorze
Witam.
Zrobi?em sobie marker ale jak zrobi? aby on by? w interiorze o id : 6 ?
marker = createMarker ( 254 , 77 , 1004 , "cylinder" , 1.5 , 255 , 255 , 255 , 170 )
Pozdrawiam i za pomoc daje
15. Marker w interiorze
Witam! Jak stworzy? marker w interiorze?
16. [DM] Chowa bronie w interiorze PP
Witam, dzisiaj chcia?em wy??czy? funkcje chowania broni w pomieszczeniu ale nie pomog?o usun??em to:
AllowInteriorWeapons(0)
I nic to nie da?o wi?c prosze was o pomoc