Jump to content

JamesDragon

Members
  • Posts

    6
  • Joined

  • Last visited

JamesDragon's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Hello guys, do you have a way to add knife blocks? For example, I have police knives and I want to add blocks to add them, not to replace the skin, for example.
  2. there's an issue with the isMouseInPosition function where it doesn't return false when the conditions aren't met. It's recommended to add a return false statement outside the if block to cover the case when the cursor isn't in the specified area: function isMouseInPosition(x, y, w, h) if isCursorShowing() then local sx, sy = guiGetScreenSize() local cx, cy = getCursorPosition() local cx, cy = (cx * sx), (cy * sy) if (cx >= x and cx <= x + w) and (cy >= y and cy <= y + h) then return true end end return false -- Add this line to return false if conditions aren't met end
  3. Can i also send arguments to the function?
  4. thank you a lot of but i have one question if i want for exemple execute a js function when a lua event happen
  5. i work on a ui panel using html and i want fetch a lua array and display it to my html ui using js
  6. Hello guys, does anyone have an idea how to send Lua values to JavaScript to display them in the game, or for example, to show a list of players or run a JavaScript function?
×
×
  • Create New...