Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 16/11/19 in all areas

  1. defaults.luac = get 'luac', defaults.prep = get 'prep', defaults.prepa = get 'prepa', defaults.prepcache = get 'prepcache', defaults.luaccache = get 'luaccache', defaults.suffix = get 'suffix', defaults.extension = get 'extension', defaults.naming = get 'naming',--order is important, e=strip extension, s=add suffix, t=replace with target if target exists defaults.tgt = '', There shouldn't be commas at the end of each line, as each line here is a separate statement (optionally, you can end it with a semicolon though). For a code this advanced it's kinda suspicious that you can't read error messages. Presumably this isn't your code?
    1 point
  2. You want to draw rectangle next to cursor, am i right? getCursorPosition returns values from 0 to 1 so you should multiply values to get absolute coordinates like this: local scx, scy = guiGetScreenSize() local cx, cy = getCursorPosition() addEventHandler("onClientRender", root, function() dxDrawRectangle(cx*scx, cy*scy, 300, 100) end)
    1 point
  3. Não se esqueça de deixar um thanks, caso as respostas deles te ajudaram!
    1 point
  4. Como é função útil, então necessita que você coloque isso dentro do seu código Em seguida, só utilizar a função: convertNumber(getElementData ( localPlayer, "Bank:Caixa" )) or 0
    1 point
  5. Você pode usar esta função útil: convertNumber
    1 point
  6. Utilize a seguinte função para arredondar o número. math.floor()
    1 point
  7. 1 point
  8. No problem, enjoy Once you have mastered the table completely, serverside scripting will become less of a challenge. One last tip: be more consistent with locals. (Line 4) Those keep things clean and tidy.
    1 point
  9. Menu principal do MTA >>> Editor de Mapas
    1 point
×
×
  • Create New...