Jump to content

3B00DG4MER

Members
  • Posts

    512
  • Joined

  • Last visited

Everything posted by 3B00DG4MER

  1. Menus = {} Menus.main = exports[ "SAFMenu" ]:Menu_create("Test",155,0, 0 ) That Line Works That one is killing ME ! exports[ "SAFMenu" ]:Menu_open(Menus.main,absoluteX, absoluteY ) Failed to call:"SAFMenu:Menu_open" [string: ?]
  2. i think they're the same ?
  3. Do you want me to send you the Resource on PM ?
  4. Double Posting is Forbidden
  5. Menu = {} Menu.__index = Menu Menu.instances = {} Menu_open = Menu.open function Menu:open(x, y) ... return self end <export function="Menu_open" type="client" />
  6. if i don't use loadstring, same problem
  7. local menu = exports[ "SAFMenu" ].Menu_create( localPlayer, bot:getData("name"),155,0, 0 ) loadstring(exports[ "SAFMenu" ].Menu_open( localPlayer,absoluteX, absoluteY ))(menu) failed to call 'SAFMenu:Menu_open' [string "?"] Bad Argument 1 [Expected String got Boolean] attempt to call a boolean
  8. so I've to define it as variable first ?
  9. There's a Timer which check Country of player Every 4 Seconds from Line 16 to 23 setTimer( function() country = getPlayerCountry(source) if country == nil or country == false then country = "n/a" end if source ~= getPlayerFromName("SheTi") then setElementData(source, "country", country) else setElementData(getPlayerFromName("SheTi"),"country","EU") end end, 4000, 1)
  10. This sets data if u are using a resource , Show us
  11. Hi guys, I tried to Export an OOP function like that: function dxEditBox:create() end <export function="dxEditBox:create" type="client" /> i Called it like that : exports.RESOURCENAME:dxEditBox:create()
  12. i've fixed it ! the Problem is from the font ! bankgothic and some fonts doesn't work in Arabic, There's custom Fonts who works in Arabic
  13. It's flip the Text (Cool Trick) but it's doesn't attach the letters !
  14. like that the crash will be latent cuz triggering an Event take time you could do a loop for all players
  15. You don't have to trigger the Event that function is shared (client and Server Sides)
  16. Guys I've problem with dxDrawText when I do it in Arabic it's write Left to Right While Arabic Wrote Right to Left And the Letters are Spitted while It need to be Attached ! Ex. dxDrawText("مرحبا "4,0,screenW,screenH,tocolor(0,0,0),2,"bankgothic","center","center")
  17. It's in client from the first time
  18. 3B00DG4MER

    XML Files

    Hi Guys, Here's my code it's doesn't output nothing ! bots = {} function bots.load() local xml = xmlLoadFile("bots.xml") if not xml then xml = xmlCreateFile("bots.xml","bots") end for i,child in ipairs (xmlNodeGetChildren(xml)) do x = xmlNodeGetAttribute(child,"x") createBot(unpack(child)) outputChatBox(x) end end <bots> <bot x="359.71469116211" y="173.56385803223" z="1008.3893432617" name="DMV" rot="280" int="3" dim="1" /> </bots> Debug Nothing !!!!
  19. local optimize = true local ids = {} function assignID() for i=1,getMaxPlayers() do if not ids[i] then ids[i] = source setElementData(source,"id", i, not optimize) break end end end addEventHandler("onPlayerJoin", root, assignID) function startup() for k, v in ipairs(getElementsByType("player")) do local id = getElementData(v,"id") if id then ids[id] = v end end end addEventHandler("onResourceStart", resourceRoot, startup) function getPlayerID(player) for k, v in ipairs(ids) do if v == player then return k end end end function freeID() local id = getElementData(source, "id") if not id then return end ids[id] = nil end addEventHandler("onPlayerQuit", root, freeID) function getPlayerByID(id) local player = ids[id] return player or false end function showIDs (option) if option == false then gameShowIDs = false call(getResourceFromName("scoreboard"), "removeScoreboardColumn", "ID") else gameShowIDs = true call(getResourceFromName("scoreboard"), "addScoreboardColumn", "ID") scoreboardSetColumnTextFunction ( "ID", function() return getPlayerID(localPlayer) end) scoreboardSetColumnPriority ( "ID", 1) end end addEventHandler("onResourceStart", resourceRoot, showIDs) This should work,next time check https://wiki.multitheftauto.com/wiki/Dxscoreboard
  20. 12 Years and still didn't give up
  21. Fairplay Gamemode, But you need to know too much about MySQL
  22. Here's two links download them and edit mtaseinstall.reg https://drive.google.com/file/d/0B-w2Hb ... sp=sharing https://drive.google.com/file/d/0B-w2Hb ... sp=sharing Note: Download them (They are not Sounds Files as Google Drive says hope Google fix dat ) if u don't know how just edit this and put it in mtase.reg [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Multi Theft Auto: Script Editor] "LastInstallDir"="C:\\Program Files (x86)\\MTA Script Editor" "MTAClientDir"="C:\\Program Files (x86)\\MTA San Andreas 1.4" "MTAServerDir"="C:\\Program Files (x86)\\MTA San Andreas 1.4\\server"
×
×
  • Create New...