Jump to content

Static-X

Members
  • Posts

    128
  • Joined

  • Last visited

Everything posted by Static-X

  1. Static-X

    guiShow

    100% agreed now
  2. I don't think so that it will be done ( dunno really ). You can just use DukeNukem or Dukenukem or other instead of dukenukem.
  3. Static-X

    guiShow

    @klesh, 1. Add GUIEditor_Button = {} on top. 2. use guiSetText(e_u,getPlayerName(getLocalPlayer()) 3. use Btn_log = guiCreateButton 4. use Btn_log = guiCreateButton 5. use loginwindow = = guiCreateWindow 6. use getResourceRoot = getResourceRootElement(getThisResource()) on top. 99.8% agreed.
  4. Static-X

    Is something wrong??

    %MTASERVER%\'helpmanager'>'helpmanager_client.lua' search for wndHelp = guiCreateWindow(.2, .2, .6, .6, "Help", true) edit .2, .2, .6, .6 so it can meet your needs. This may help https://wiki.multitheftauto.com/wiki/GuiCreateWindow
  5. Static-X

    goto line

    Let me guess, he(Castillo/Solidsnake14) is making a notepad for his computer system resource right?
  6. Static-X

    MAPPING help

    Read For replacing textures (TXD) https://wiki.multitheftauto.com/wiki/EngineLoadTXD https://wiki.multitheftauto.com/wiki/EngineImportTXD For replacing models (DFF) https://wiki.multitheftauto.com/wiki/EngineLoadDFF https://wiki.multitheftauto.com/wiki/EngineReplaceModel
  7. Static-X

    Is something wrong??

    Please use 'search' before posting. viewtopic.php?f=108&t=30215
  8. oh well, dd/dm mode is included in 'race' resource/gamemode which would/should be on your server as default resources so you do not need to download it. You can get the DD/DM maps from Mta community.
  9. Just type /elights again to turn it back to white.
  10. --- test with [lua] addCommandHandler("cmd",function(player) outputChatBox(" ",player) end ) P/S: Both works for me.. --- test with [code=lua] addCommandHandler("cmd",function(player) outputChatBox(" ",player) end )
  11. As the title says, I have some problems with accessing settings of my resource, 'treasure'.It just don't actually show that my resource have any settings. Am I doing something wrong, or I need to add (use) something else? - Static-X
  12. Make some profile settings, like real name, age etc. And only friends allowed to read it.
  13. Post hunters, you know. Well, nice work, especially on the rotate part. Wish you good luck.
  14. function tazer ( attacker, weapon ) if (attacker) and (weapon == 24) then local source = getLocalPlayer() triggerServerEvent ( "setAnim", source,source ) cancelEvent() end end addEventHandler ( "onClientPlayerDamage", getRootElement(), tazer ) server side: function setAnim ( player ) if not isPedInVehicle( player ) then setTimer(setPedAnimation,2000,1, player,"ped", "FLOOR_hit_f") end end addEvent ( "setAnim", true ) addEventHandler ( "setAnim", getRootElement(), setAnim )
  15. Static-X

    Help.

    ERROR: telleports/telleports.lua:46: attempt to call global 'getLocalPlayer' (a nil value) local localPlayer = getLocalPlayer ( ) outputConsole ( "npcsparrowgo", localplayer ) He don't even know that getLocalPlayer() is client sided function or he can't differentiate between server and client sided scripts. Also, could you explain what is your goal ?
  16. [put what zango said here] This would help getting the values https://wiki.multitheftauto.com/wiki/Gui ... nSize#Tips
  17. You can get screen size by using guiGetScreenSize, see details here https://wiki.multitheftauto.com/wiki/GuiGetScreenSize P/S: Offtopic: last part of our names match
  18. That is the same code. Whats the difference ? Actually using different functions instead of defining the function with event handlers or command handlers is more easy. root = getRootElement() function CP1 (pennis) if pennis == 1 then CP1FBI = createVehicle (490 , -2222.6044921875, -718.970703125 , 65.950073242188 , 355.869140625 , 3.9715576171875, 275.77331542969 ) CP1PED = createPed ( 285, 0, 0, 0 ) warpPedIntoVehicle ( CP1PED, CP1FBI) setElementData (CP1FBI, 'race.collideothers', 1 ) setVehicleEngineState (CP1FBI,true) setElementVelocity (CP1FBI,0,1,0) setElementHealth (CP1FBI, 1) setTimer(destroyElement,10000,1,CP1FBI) end end addEvent('onPlayerReachCheckpoint') addEventHandler('onPlayerReachCheckpoint', root, CP1)
  19. +1 Aiboforcen. secondly, @trustno, afaik I know, the event you are using is exported from race gamemode, have a look at this https://wiki.multitheftauto.com/wiki/RU/ ... _in_detail, you probably have to use an integer, for example if you want to trigger your stuff when player reaches checkpoint #1, then you will have to use, function CP1 (cp) if cp == 1 then ... P/S: no need for getElementsByType.
  20. Static-X

    Join Quit

    Have a closer look at https://wiki.multitheftauto.com/wiki/outputChatBox, folks... outputChatBox("* "..getPlayerName(source).." #FF0000has joined to LA server.",getRootElement(),255,255,0,true)
  21. Static-X

    login message

    You want this output to be printed after 2 secs?if yes then use, setTimer(outputChatBox,2000,1,getPlayerName(source).. " login and says: ".. data[1]["LoginMsg"].."!",getRootElement(),0,255,0,true)
  22. If you mean auto starting resources then it can be configured in mtaserver.conf file. Open it with any text editor and scroll to the end and look at the lines at the end.
×
×
  • Create New...