Jump to content

Raph

Members
  • Posts

    10
  • Joined

  • Last visited

Raph's Achievements

Member

Member (5/54)

0

Reputation

  1. Well, for the timer problem it's kinda simple since there's no function named 'randomVehColors'. And for the unexpected symbol at line 40, well y'know, I never use semi-colons ( in lua and I don't see the point of putting one at the end of the function. And I personally don't like the setTimer function, I would suggest you do something with 'onClientRender' and 'getTickCount'. I would show you how but I'm not on my pc atm.
  2. Raph

    Money Saver

    Make a SQL script for that. If you can't script I suggest you to search for SQL bank scripts, I've seen some in the community.
  3. He isn't talking about world coordinates. He means coordinates inside the vehicle. Just like SoldSnake14 said, think that you will have to just keep editing the script until you get it correct. Ah, well I didn't understand then... Sorry about that. Just do as he said then. Maybe you can try to mess with getElementBoundingBox
  4. Or just type /pos where you want it to be while this script is running: --Client-side addCommandHandler("pos", function() local x, y, z = getElementPosition(localPlayer) outputConsole("X: " .. x .. ", Y: " .. y .. ", Z: " .. z) end ) Just press F8 and copy and paste it in your script.
  5. Raph

    Help hud

    I don't get why you have some many functions called the same. Try using only one like this: function isPlayerHQHudVisible(thePlayer, hudComponent) if (isElement(thePlayer)) then if (getElementData(thePlayer, hudComponent)) then return true else return false end else return false end end function setPlayerHQHudVisible(thePlayer, hudComponent, state) if (isElement(thePlayer)) then setElementData(thePlayer, hudComponent, state) return true else return false end end Then, to call them, you can use this: setPlayerHQHudVisible(localPlayer, "ammo", true) --and isPlayerHQHudVisible(localPlayer, "ammo")
  6. Raph

    Help hud

    Can you show me this function?
  7. Raph

    Help hud

    Oh okay. Try to change line 376 for onClientRender
  8. Raph

    Help hud

    Then shouldn't it be like exports.resourceName:isPlayerHQHudVisible?
  9. Raph

    Help hud

    I can't see neither your isPlayerHQHudVisible or setPlayerHQHudVisible functions. Maybe you didn't show your full script. Do you have any debug text showing?
  10. Raph

    Help hud

    If you try to show your HUD with "onClientPreRender", it's normal that the hud isn't showing. You need to make it "onClientRender". See onClientRender for more info.
×
×
  • Create New...