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: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

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 screenXscreenY guiGetScreenSize()
local widthheight 250300
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(PlateWndfalse)
guiSetVisible(PlateWndfalse)
guiSetInputMode("no_binds_when_editing")
editPlate guiCreateEdit(206521030""falsePlateWnd)
guiEditSetMaxLength(editPlate8)
button1Plate guiCreateButton(1325711030"OK"falsePlateWnd)
button2Plate guiCreateButton(12725711030"Zamknij"falsePlateWnd)
lbl1Plate guiCreateLabel(452118817"Wcisni OK Aby Zmienic Tablice"falsePlateWnd)
ldl2Plate guiCreateLabel(754111717"(Max. 8 Symboli)"falsePlateWnd)
lbl3Plate guiCreateLabel(40,110,250,17,"Skrypt W Fazie Testow/Poprawek",false,PlateWnd)
guiLabelSetColor(lbl3Plate128128128)    
addCommandHandler"plate", function()
if isPedInVehicle(getLocalPlayer()) then
    if (guiGetVisible(PlateWnd) == truethen
        guiSetVisible(PlateWndfalse)
        showCursor(false)
    else
        guiSetVisible(PlateWndtrue)
        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)
    setVehiclePlateTextvehnumber )
    guiSetVisible(PlateWnd,false)
    showCursor(false)        
end
addEventHandler "onClientGUIClick"button1PlatesetButton )
function closeButton()
    guiSetVisible(PlateWndfalse)
    showCursor(false)
end
addEventHandler "onClientGUIClick"button2PlatecloseButton )


Postaw piwo autorowi tego posta
 

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


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

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: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

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: 4870 dni
Posty: 240
Nick w MP: xNinja

Piwa: 452

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: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

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: 28
Na forum: 5246 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