Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2015-02-22, 21:33


THEGizmo

Modeler/Uczeń Lua






Wiek: 28
Na forum: 4282 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3091

Respekt: 200
Respekt: 200Respekt: 200

Witam mam o to taki problem bo nie wiem jak zrobi? z?by by?o to na marker
(chodzi mi o to gdy mamy pojazd i wje?d?amy w marker wyskakuje nam gui z zmiana tablicy)
Za pomoc :arrow: :piwo:

local screenX, screenY = guiGetScreenSize()
local width, height = 250, 300
local x = (screenX/1.15) - (width/2)
local y = (screenY/2) - (height/2)
PlateWnd = guiCreateWindow(x,y,width,height,"Panel Zmiany Rejestracji",false)
guiWindowSetSizable(PlateWnd,false)
guiWindowSetMovable(PlateWnd, false)
guiSetVisible(PlateWnd, false)
guiSetInputMode("no_binds_when_editing")
editPlate = guiCreateEdit(20, 65, 210, 30, "", false, PlateWnd)
guiEditSetMaxLength(editPlate, 8)
button1Plate = guiCreateButton(13, 257, 110, 30, "OK", false, PlateWnd)
button2Plate = guiCreateButton(127, 257, 110, 30, "Zamknij", false, PlateWnd)
lbl1Plate = guiCreateLabel(45, 21, 188, 17, "Wcisni OK Aby Zmienic Tablice", false, PlateWnd)
ldl2Plate = guiCreateLabel(75, 41, 117, 17, "(Max. 8 Symboli)", false, PlateWnd)
lbl3Plate = guiCreateLabel(40,110,250,17,"Skrypt W Fazie Testow/Poprawek",false,PlateWnd)
guiLabelSetColor(lbl3Plate, 128, 128, 128)    
addCommandHandler( "plate", function()
if isPedInVehicle(getLocalPlayer()) then
    if (guiGetVisible(PlateWnd) == true) then
        guiSetVisible(PlateWnd, false)
        showCursor(false)
    else
        guiSetVisible(PlateWnd, true)
        showCursor (true)
    end
    else
        outputChatBox("Musisz Byc W Pojezdzie Jesli Chczesz Zmienic Tablice",getLocalPlayer(),255,0,0)
    end
end)
function setButton()
local veh = getPedOccupiedVehicle(getLocalPlayer())
local number = guiGetText(editPlate)
    setVehiclePlateText( veh, number )
    guiSetVisible(PlateWnd,false)
    showCursor(false)        
end
addEventHandler ( "onClientGUIClick", button1Plate, setButton )
function closeButton()
    guiSetVisible(PlateWnd, false)
    showCursor(false)
end
addEventHandler ( "onClientGUIClick", button2Plate, closeButton )


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-22, 22:12


MeeShuffle

Programista/Grafik






Wiek: 33
Na forum: 4536 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8578

Respekt: 535,3
Respekt: 535,3

Podstaw otwieranie pod event


Więcej informacji znajdziesz w Wikipedii MTA:

onClientMarkerHit


Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-22, 22:19


THEGizmo

Modeler/Uczeń Lua






Wiek: 28
Na forum: 4282 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3091

Respekt: 200
Respekt: 200Respekt: 200

Shuffle a mo?esz da? mi gotowe bym by? bardzo wdzi?czny.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-23, 09:01


Novovix

xNinja powraca






Wiek: 26
Na forum: 5011 dni
Posty: 240
Nick w MP: xNinja

Piwa: 453

Respekt: 80,5

Zamiast
addCommandandler('plate'
wstaw
addEventHandler("onClientMarkerHit",nazwamarkera,


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-23, 09:29


THEGizmo

Modeler/Uczeń Lua






Wiek: 28
Na forum: 4282 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3091

Respekt: 200
Respekt: 200Respekt: 200

Dzi?ki Dzia?a ?ap :piwo: i ty Shuffle tez :)

Podpis
Modeler Corporation Sp. Z.O.O

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-23, 10:50


ToxiC.







Wiek: 29
Na forum: 5387 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

[clo]

Postaw piwo autorowi tego posta
 

 
Tagi: zmiana :: tablic :: markerze
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Zmiana tablic w markerze Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku