-
Posts
512 -
Joined
-
Last visited
Everything posted by 3B00DG4MER
-
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: ?]
-
i think they're the same ?
-
Do you want me to send you the Resource on PM ?
-
Double Posting is Forbidden
-
Menu = {} Menu.__index = Menu Menu.instances = {} Menu_open = Menu.open function Menu:open(x, y) ... return self end <export function="Menu_open" type="client" />
-
if i don't use loadstring, same problem
-
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
-
so I've to define it as variable first ?
-
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)
-
This sets data if u are using a resource , Show us
-
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()
-
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
-
It's flip the Text (Cool Trick) but it's doesn't attach the letters !
-
like that the crash will be latent cuz triggering an Event take time you could do a loop for all players
-
You don't have to trigger the Event that function is shared (client and Server Sides)
-
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")
-
It's in client from the first time
-
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 !!!!
-
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
-
12 Years and still didn't give up
-
Fairplay Gamemode, But you need to know too much about MySQL
-
[Outdated] Unofficial MTA Script Editor 0.3 (4851) RELEASED!
3B00DG4MER replied to 50p's topic in Scripting
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"
