Jump to content

Aibo

Retired Staff
  • Posts

    1,105
  • Joined

  • Last visited

Everything posted by Aibo

  1. Aibo

    table problem

    so how many you got in your total checkpoint count?
  2. Aibo

    table problem

    what is the point of I = 0 and I = I +1? and where is the checkpointsTable created? and if your table has ordered indexes, you should use ipairs(), not pairs().
  3. and also there is a nice SQLite addon for firefox: https://addons.mozilla.org/en-US/firefo ... e-manager/
  4. somewhat: viewtopic.php?p=332456#p332456
  5. yep, i think 0.3-0.4 would be fine.
  6. well you can also scale down the icons a bit to get some space, won't hurt.
  7. imo, needs a bit more space between icons: http://pixelterror.ru/up/opegaqov.jpg EDIT: fixed your pic :3
  8. Aibo

    Just a problem

    addEvent ("Gen", true) addEvent ("Col", true) addEvent ("Rct", true) addEvent ("Pvt", true) addEvent ("Sgt", true) addEvent ("Dsgt", true) addEvent ("Ng", true) addEvent ("Mscr", true) addEvent ("Rem", true) imo, this is redundant, why not create 1 event and send your "Mscr/Rem/Ng" or whatever as an argument?
  9. with 99.99% probability your script is set as type="server" (instead of "client") in your meta.xml. GUI and related functions exist only in the client.
  10. Aibo

    Race Stats

    and what makes you so sure the error is in the lines you've posted, and not in the deleted ones?
  11. Aibo

    Race Stats

    well there's no outputChatBox in the code you've posted.
  12. Aibo

    Race Stats

    ok then, how do you know your function works if your function does nothing?
  13. Aibo

    Race Stats

    and where is "here"? same file? same resource, but other file?
  14. GUI functions are always client-side. this is server script, judging by onMarkerHit. use onClientMarkerHit in a client script. also, if you do it like "local policeWindow = guiCreateWindow" in a handler function, you wont be able to access this gui element when your function finishes.
  15. Aibo

    setCameraGoogleEffect

    no, it's not available in 1.0.5 and since it is client-side — camera effect is set only for local player.
  16. Aibo

    setCameraGoogleEffect

    setCameraGoggleEffect() is MTA:SA 1.1 function. as for parameters, there is one, read the wiki: https://wiki.multitheftauto.com/wiki/Set ... ggleEffect
  17. offtopic removed. please behave. you can always exchange pleasantries/insults in PM :3
  18. first: i'm not sure if onGamemodeMapStart event is available clientside. second: addEvent("onPlayerPickUpRacePickup", true) function disableGhostmode(_, pickupType, vehicleModel) if pickupType == "vehiclechange" and vehicleModel == "425" then outputChatBox("* Hunter Reached! Ghostmode will be diasbled in 10 seconds!", getRootElement(), 35, 107, 142) setTimer(gmoff, 100000, 1) end end addEventHandler("onPlayerPickUpRacePickup",getRootElement(),disableGhostmode) also 100000ms is not 10 seconds, it's 100 seconds.
  19. first one: not enough info. like where is your event triggered, is theText defined, what's the debug output? second: read my previous post. you forgot all of the event handler arguments: function disableGhostmode()
  20. because you're not passing any parameters to the function: info, pickupType, vehicleModel.
  21. this is a forum Lua highlighter bug with get/setPlayerTeam() functions. and dont just blindly copy everything, at least try to understand how things work. function teamMarkerHit( hitElement, matchingDimension ) if getElementType( hitElement ) == "player" and not isPedInVehicle(hitElement) then if getPlayerTeam (hitElement) == Police then outputChatBox("You are already in this team", hitElement) else setPlayerTeam ( hitElement, Police) setPlayerSkin( hitElement, 280) giveWeapon ( hitElement, 3, 1, true ) giveWeapon ( hitElement, 22, 148, true ) giveWeapon ( hitElement, 29, 64, true ) giveWeapon ( hitElement, 25, 10, true ) end end end addEventHandler( "onMarkerHit", teamMarker , teamMarkerHit ) also its not thePlayer, but hitElement on line 4.
  22. 1. well figure out a formula yourself. take your consumption on mimimum speed and maximum speed, and devise a formula that would produce these value on similar speeds? though maybe someone got better suggestions. 2. dxDrawImage (if you want some fancy bar) that you can stretch or simple dxDrawRectangle. "going down" can be made by setting the image/rectangle height/Y according to fuel amount. you can also try guiCreateStaticImage and resizing that (though i prefer dx drawin for dynamic stuff). as for showing it vehicle occupant, add onClientVehicleEnter(Exit) event handler that will show/hide the bar to the player that entered. 3. use dxDrawText with center X alignment (or guiCreateLabel if you're going with gui). as for rounding you can use Lua's math.ceil(), math.floor(), math.modf() for that.
  23. what about MTA's getDistanceBetweenPoints3D? https://wiki.multitheftauto.com/wiki/Get ... enPoints3D
×
×
  • Create New...