-
Posts
58 -
Joined
-
Last visited
Everything posted by XeRo
-
Hi Guys. DxDrawRectangle Click Function Pls Fix.??? function Button() dxDrawRectangle(screenW * 0.1875, screenH * 0.6267, screenW * 0.7025, screenH * 0.0233, tocolor(9, 72, 199, 255), false) dxDrawText("Click to Info", (screenW * 0.3700) + 1, (screenH * 0.6267) + 1, (screenW * 0.7063) + 1, (screenH * 0.6500) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, true, false) dxDrawText("Click to Info", screenW * 0.3700, screenH * 0.6267, screenW * 0.7063, screenH * 0.6500, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, true, false) end addEventHandler ( "onClientClick", root, function () if source == Button then addEventHandler("onClientRender",root, Aresa) end end) function Aresa() dxDrawRectangle(screenW * 0.1363, screenH * 0.6550, screenW * 0.8087, screenH * 0.1933, tocolor(0, 0, 0, 138), false) dxDrawText("Area: ", screenW * 0.1487, screenH * 0.6933, screenW * 0.9400, screenH * 0.7217, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, true, false, true, false) dxDrawText("Secret:", screenW * 0.1487, screenH * 0.7383, screenW * 0.9400, screenH * 0.7667, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, true, false, true, false) end
-
ok. Thnks How to Bindkey Animation ?
-
Can you help me I don't know
-
Example; function toggleFreezeStatus ( thePlayer ) -- if he is in a vehicle, if getPedOccupiedVehicle ( thePlayer ) then -- get the vehicle element local playerVehicle = getPlayerOccupiedVehicle ( thePlayer ) -- get the current freeze status local currentFreezeStatus = isElementFrozen ( playerVehicle ) -- get the new freeze status (the opposite of the previous state) local newFreezeStatus = not currentFreezeStatus -- set the new freeze status setElementFrozen ( playerVehicle, newFreezeStatus ) end end
-
I want to add animation
-
g_Window.window = guiCreateStaticImage(screenW * 0.0000, screenH * 0.0000, screenW * 0.2888, screenH * 1.0000, "gui.png", false)
-
I can do what I want to head you in the Show Logo according to Acl.
-
I do not know how to do. So from this camera will be of interest
-
Hi. how to SetCameraMatrix Remove ? function setCameraOnPlayerJoin() -- slowly fade the camera in to make the screen visible fadeCamera(source, true, 5) -- set the player's camera to a fixed position, looking at a fixed point setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin)
-
PlayerClan = guiCreateLabel(6, 96, 170, 24, "Clan:", false, UserPanel) guiSetFont(PlayerClan, "default-bold-small") addEventHandler("onClientResourceStart",getRootElement(), function() if getElementsByType("team") then guiSetText(PlayerClan,"Clan:",getTeamName ( team )) end end )
-
(server-side) root = getRootElement() gResRoot = getResourceRootElement(getThisResource()) --X Y Z cordinates id,x,y,z,rx,ry,rz = [X],[Y],0,0,90 Xero = "CloseGate" gate = createObject(id,x,y,z,rx,ry,rz) Col = createColSphere(x,y,z,5) function GatePlayerOpen(player) if (getElementType(player) == "player") then if (Xero == "CloseGate") then OpenMyGate(player) else CloseMyGate(player) end end end addEventHandler("onColShapeHit",Col,GatePlayerOpen) addEventHandler("onColShapeLeave",Col,GatePlayerOpen) function GatePlayerOpen2(player) if Xero == "CloseGate" then outputChatBox("Player Open Gate.",player,170,255,0) local x,y,z = getElementPosition(Kapi) moveObject(Gate,2000,x,y,z-5.5) Xero = "OpenGate" end end function ClosePlayerGate(player) if Xero == "OpenGate" then outputChatBox("Player Close Gate.",player,170,255,0) moveObject(Gate,2000,x,y,z) Xero = "CloseGate" end end
-
oh Thanks. Help me GUIEditor.staticimage[2] = guiCreateStaticImage(0, 0, 231, 768, "menu.png", false)
-
i'm noob sorry please retry edit my code help
-
Hi How to guigetScreenSize ? GUIEditor.staticimage[1] = guiCreateStaticImage(217, 79, 647, 558, "panel.png", false)