
KaMeR
Members-
Posts
25 -
Joined
-
Last visited
Everything posted by KaMeR
-
gtasa reinstall helped. #Close
-
but if mta 1.0.5 works, 1.1 shouldnt ? or maybe there are some new protections against cars or peds replacing.
-
Everytime i try to connect to any server i get runtime error. MTa 1.0.5 works without any problems. screen: how to fix that ?
-
suggestion: load specified vehicle settings. example: we are in infernus and load monster setting maybe you already added it but i don't know
-
i have problem with map rendering buildings doesnt appear etc. is it mta problem or its me ? :\
-
here is part of my code the problem is only i see the text but i want it visible to selected player from gridlist.. addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == GUIEditor_Button[1]) then local playerName = guiGridListGetItemText ( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) guiSetText ( GUIEditor_Label[2], playerName ) local text = guiGetText ( GUIEditor_Edit[1] )--get the text from the edit box outputChatBox(playerName .. "-> " ..tostring(text), playerName, 255,255,0, true) end end )
-
what about implement gui with players list, bind [F2..] to appear players list, then choose player and can easy write to him.. without any "/msg" command.. its more easy and comfortable sorry for my bad english
-
i just want sizes from editboxes to form
-
why it doesnt work? size doesnt change WindowForm = guiCreateWindow ( 0.15, 0.2, 0.60, 0.50, "GUI", true ) editX = guiCreateEdit( 0.1, 0.5, 0.10, 0.06, "0.1", true, WindowForm ) editY = guiCreateEdit( 0.1, 0.6, 0.10, 0.06, "0.2", true, WindowForm ) button = guiCreateButton( 0.1, 0.2, 0.15, 0.06, "B TEST", true, WindowForm ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function () if (source == button) then local textX = guiSetText ( editX ) local textY = guiSetText ( editY ) guiSetSize ( WindowForm, textX, textY, true ) end end ) btw is any gui editor?
-
https://forum.multitheftauto.com/viewtopic.php?f=91&t=21180
-
anyone know how use "triggerServerEvent" in it? addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == button) then outputChatBox ( "Button Pressed" ) end end )
-
button = guiCreateButton( 0.1, 0.2, 0.10, 0.03, "Admin!", true, WindowForm ) button1 = guiCreateButton( 0.1, 0.3, 0.10, 0.03, "Admin!", true, WindowForm ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == button) then outputChatBox ( "Admin! I Need You!, Help Me!!" ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == button1) then outputChatBox ( "Admin! I Need You!, Help Me!!" ) end end ) etc... ...
-
can you post the fixed code? it may help the people who get the problem that you have.. first code works fine
-
didnt see what is in function? nothing happend when click button =/ !
-
button = guiCreateButton( 0.1, 0.2, 0.15, 0.06, "B TEST", true, WindowForm ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == button) then outputChatBox ( "Button Pressed" ) end end ) i tryed too> button = guiCreateButton( 0.1, 0.2, 0.15, 0.06, "B TEST", true, WindowForm ) function test () outputChatBox ( "Button Pressed" ) end addEventHandler ( "onClientGUIClick", button, test ) ) and wont work what is the problem?? (this and this doesnt work)
-
function Jump ( key, keyState ) local vehicle = getPlayerOccupiedVehicle(getLocalPlayer()) if ( keyState == "down" ) and ( isVehicleOnGround( vehicle ) == true ) then end if ( isVehicleOnGround( vehicle ) ) then local x, y, z = getElementVelocity(vehicle) setElementVelocity(vehicle, x, y, z + 0.4) end end bindKey ( "z", "down", Jump ) -- bind the player's z down key try this one works for me
-
why when vehicle is created cant destroy him and is locked??? function scriptCreateVoo ( commandName ) local localPlayer = getLocalPlayer ( ) local x, y, z = getElementPosition ( localPlayer ) createVehicle ( 412, x + 5, y, z + 1 ) end addCommandHandler ( "voo", scriptCreateVoo )
-
already tryed that nothing happend when clicking buttons
-
why the two buttons have same effect when clicking whats wrong? closeButton = guiCreateButton( 0.1, 0.9, 0.8, 0.1, "click here to close", true, windowForm) button = guiCreateButton( 0.7, 0.4, 0.2, 0.1, "test", true, windowForm ) function bClose ( closeButton ) guiSetVisible ( windowForm, false ) showCursor ( false ) end function test( button ) outputChatBox ( "test" ) end addEventHandler ( "onClientGUIClick", getRootElement(), bClose ) addEventHandler ( "onClientGUIClick", getRootElement(), test )