Jump to content

PartyMTA

Members
  • Posts

    23
  • Joined

  • Last visited

Details

  • Gang
    -USG-

Recent Profile Visitors

15,423 profile views

PartyMTA's Achievements

Civilian

Civilian (7/54)

0

Reputation

  1. //With math based animation i mean ex; alpha = alpha + 1 Hello everyone. I am working on login panel with animation like mentioned above this line. Running the event first time works fine, but when i run it AGAIN, it doesnt detect when to stop. First time run is when resource start, and second time when i click a button (which does it perfectly) function loginAnim() if components.login.startPosX>stopanimpos1 then components.login.startPosX = components.login.startPosX - 10 if components.login.startPosX==stopanimpos1 then components.login.startPosX = stopanimpos1 end end end function loginAnim2() if components.login.startPosX<=stopanimpos1 then components.login.startPosX = components.login.startPosX - 10 if components.login.startPosX==0 then removeEventHandler("onClientRender",getRootElement(),login) components.login.startPosX = x end end end loginAnim is for opening, loginAnim2 for closing. It's windows 8 styled btw
  2. Hello guys, first: excuse me for too many questions, but i get stuck everytime. So i ask here. Is it possible to do a text in circle like dxDrawCircle, bit instead of drawing an line, a text? If so, please tell me how.
  3. The player is too in dimension 4, as you go there when you click the Freeroam button.
  4. Hello guys. I am working on a multi-gamemode, atm with freeroam. But when i try to add an vehicle in Dimension 4 (Same as the player) it does not show. No errors, nothing. If u need code, tell me.
  5. It depends on your forum, and if your web hoster supports mysql sharing. You could call the messages with the db functions and let the code update everytime theres a message added, and let the code output the latest message in the chatbox. Free webhostings mostly don't support mysql sharing over other sources tho.
  6. You need to make it yourself and create custom radar for it. I don't know about MTA:Eir, as i saw the normal radar with custo map.
  7. Hello all, im working on a lobby for my gamemode, i used getThisResourceRoot(getThisResource()), but when i use it in the event with DirectX functions (text, image etc), it doesnt show up, but with playSound it does work. Any help pls? root = getResourceRootElement(getThisResource()) function onJoin(theResource) addEventHandler("onClientRender",root,lobby) showCursor(true) showChat(false,false) setRadioChannel(0) radio = playSound("http://www.internet-radio.com/servers/tools/playlistgenerator/?u=http://72.13.86.6:8000/listen.pls?sid=1&t=.pls") --loginGUI() setSoundVolume(radio,2.0) lobbyFunctions() setElementDimension ( gLP, dimensions.lobby ) end addEventHandler("onClientResourceStart",root,onJoin) the lobby to render are the DX functions.
  8. Hello guys. I have 2 scripts with some directx codes in it. Whenever someone clicks on a button the second script goes on but also lets the first script on. But how do i let the first script keep overlaying the second one? First Script: function renderAlways() arena = getElementData(gLP,"user.arena") if arena then dxDrawText("Arena: "..arena,x/19,y/1.05,x,y,tocolor(255,255,255,255),2) else dxDrawText("Arena: None/Lobby",x/19,y/1.05,x,y,tocolor(255,255,255,255),2) end end addEventHandler("onClientRender",root,renderAlways) Second: function carballGui() addEventHandler("onClientRender",root,directxcb) end function directxcb() dxDrawRectangle(x/x,y/y,x,y,tocolor(0,180,0,255)) dxDrawText("Welcome to Carball!",x/2.6,y/18,x,y,tocolor(255,255,255,255),3) end The second triggers when i press a custom button (Which works). So how do i keep the first script overlaying the second one? (Both are in 2 different files) I want dxDrawText("Arena: "..arena,x/19,y/1.05,x,y,tocolor(255,255,255,255),2) keep overlay always. No matter what is in the same position
  9. Oh, i thought i had to put it server-side, thanks
  10. Hello, i tried to make a little script to make a blip for every single marker in the world and attach it. But it doesn't make any blip. Can someone help me? function getMarker() for k,marker in ipairs(getElementsByType("marker")) do local r,g,b,a = getMarkerColor(marker) createBlipAttachedTo(marker,0,2,r,g,b,a,0,99999) end end addEventHandler("onClientResourceStart",getRootElement(),getMarker) Note: i never used the for loops. So sorry if this makes no sense
  11. Hello there, how do i run different maps at the same time? (Race) I already have a gui with the maps in an array which is selectable and some buttons for it. But how do i make it work like LxG and TG? Pls don't blame for as copier or whatever. If u were interested in what i mean with maps in array: tho I made the GUI bigger already
  12. That will go up to 13 decimals, this code will go to ~15 decimals
  13. hi,i made this little script with the method of Archimedes to calculate the Pi. function getPi(commandName,number) calc = number*math.sin(0.5/number) outputChatBox(calc) end addCommandHandler("pi",getPi) Command: /pi (number) change (number) to the wished number. Without ()! its actually easy to make this. i just was bored
×
×
  • Create New...