Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: suszarki
1. dwie suszarki
Bry mam pytanko jak naprawić, aby na paczce DistrictMTA, nie nadawało dwóch suszarek tylko jedną ChatGPT wymiękł
2. Zasięg Suszarki Administratora
Witam. Chcia?bym si? dowiedzie? czy jest mo?liwo?? zwi?kszenia zasi?gu suszarki ?eby z wi?kszej odleg?o?ci od gracza/auta ju? pokazywa?o si? gui. Je?li tak To m?g?by mnie kto? nakierowa? jak takie co? zrobi??.
3. jak zrobić żeby tylko policja mogła używać suszarki
nie wiem jak to zrobi? pom??cie pliska
client
[lua]
GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[6] = guiCreateWindow(496, 279, 383, 270, "Suszarka", false)
guiSetVisible(GUIEditor.window[6], false)
guiWindowSetSizable(GUIEditor.window[6], false)
guiSetAlpha(GUIEditor.window[6], 1.00)

GUIEditor.button[1] = guiCreateButton(99, 66, 166, 133, "We?nsuszarke", false, GUIEditor.window[6])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
end
)


marker = createMarker( 1568.36243, -1690.81848, 4.89063, "cylinder", 1, 0, 0, 255, 170 )


function hit(ele)
if source == marker then else return end
if getElementType( ele ) == "player" then else return end
if ele == getLocalPlayer() then else return end
if isElementWithinMarker ( ele, marker ) then else return end
guiSetVisible(GUIEditor.window[6], true)
showCursor(true)
end
addEventHandler("onClientMarkerHit", marker, hit)

function wezsuszare()
if source ~= GUIEditor.button[1] then return end
triggerServerEvent("wezsuszare2", localPlayer)
guiSetVisible(GUIEditor.window[6], false)
showCursor(false)
end
addEventHandler("onClientGUIClick", root, wezsuszare)[/lua]


server
[lua]addEvent("wezsuszare2", true)
addEventHandler(...
4. Co jest nie tak w kodzie tej suszarki
Elo.
Problem jest taki ?e jak suszarka sapd jest w??czona to admini nie mog? celowa? swoj? suszark? ani ?adn? broni? :/
Gdzie jest b??d w tym kodzie?

[code]local w,h = guiGetScreenSize()

local vehicle={}
vehicle.id=nil
vehicle.speed=nil
vehicle.driver=nil

local option={}
value=nil
element=nil
option.selected=0
option.actived=false

option["vehicle"]={
"Akcja: Zaci?gnij r?czny",
"Akcja: Zdejmij r?czny",
}


function isPedAiming ( thePedToCheck )
if isElement(thePedToCheck) then
if getElementType(thePedToCheck) == "player" or getElementType(thePedToCheck) == "ped" then
if getPedTask(thePedToCheck, "secondary", 0) == "TASK_SIMPLE_USE_GUN" then
return true
end
end
end
return false
end

function isRendering()
if option.actived == true then
if not element then return end
local vx,vy,vz=getElementVelocity(element)
mathSpeed=(vx^2+vy^2+vz^2)^0.5*1.8*100
if mathSpeed < 0 then return end
if value == "vehicle" then
local vid=getElementData(element,"vehicle:id") or "brak"
local driver=getElementData(element,"vehicle:driver") or "brak"
dxDrawText(string.format("%.02f", mathSpeed).." km/h", (809/1024)*w, (451/768)*h, (1000/1024)*w, (482/768)*h, tocolor(255, 255, 255, 255), (2.00/1280)*w, (2.00/720)*h, &q...
5. Blokada bicia suszarki
Witam mam problem , mam suszarke admina ,lecz zadaje ona DM. Wiem ?e da si? zrobi? aby 1 bro? nie zadawa?a DM , wi?c prosz? o pomoc.

Oto jest kod kt?ry zrobi?em.

function blockShoot()
    if 
getPedWeapon(localPlayer) == 22 then
        toggleControl
("fire"false)
    else
        
toggleControl("fire"true)
    
end
end


Mo?e kod jest dobry ale mog?em wpisa? go w z?ym miejscu . Prosz? o pomoc

Daje :piwo: R*