- 
                
Posts
437 - 
                
Joined
 - 
                
Last visited
 
Everything posted by Mr.unpredictable.
- 
	dxDrawText ------ to draw text addCommandHandlerr -- set command for that not sure what you are trying to do
 - 
	If you created the map in 1.4 and saved it then it should save in 1.4\server\mods\deathmatch\resources just saying, you might have used Mta 1.3 or might not have saved it.
 - 
	Ahh, but what i realy want here is a object i can trigger by Command, and it go to the position, and i have to trigger another command to let the objects go to the next position. you can use AddCommandHandler for that and if you want the objects to be created with the command then just create the object using createobject function instead creating it in .map file.
 - 
	In your map file just set the name and id of the objects has a1 a2 a3
 - 
	Take a look at this example script, that's how i created my script long back change the names of the object to something like a1 a2 a3 addEventHandler( "onResourceStart", resourceRoot, function() setTimer(move1, 1000,1) end ) local a = { [1] = "a1", --------- object name [2] = "a2", [3] = "a3", [4] = "a4" } function move1() for e=1, 4 do for _,object in ipairs(getElementsByType("object")) do if (getElementData(object,"name") == a[e]) then local x,y,z = getElementPosition(object) moveObject(object,60000,x+500,y,z) ------------- speed and local xyz axsis end end end end
 - 
	Those type of topics should be created in this board. viewforum.php?f=36
 - 
	Check again i've added an Example https://wiki.multitheftauto.com/wiki/In ... el#Example
 - 
	I agree, I see a lot of spams in this section. This section needs to be moderated.
 - 
	lol i didn't notice that it working fine now local webBrowser = createBrowser(1000, 1000, false, false) function webBrowserRender() dxDrawImage(0, 0, 1000, 1000, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true) end addEventHandler("onClientBrowserCreated", webBrowser, function() loadBrowserURL(webBrowser, "https://www.youtube.com/tv#/watch?mode=transport&v=jofNR_WkoCE") addEventHandler("onClientRender", root, webBrowserRender) addEventHandler("onClientCursorMove", root, cm) addEventHandler("onClientClick", root, oc) end) function cm(relativeX, relativeY, absoluteX, absoluteY) injectBrowserMouseMove(webBrowser, absoluteX, absoluteY) end function oc(key, state) if state == "down" then injectBrowserMouseDown(webBrowser, key) else injectBrowserMouseUp(webBrowser, key) end end
 - 
	This code is working fine local webBrowser = createBrowser(1000, 1000, false, false) function webBrowserRender() dxDrawImage(0, 0, 1000, 1000, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true) end addEventHandler("onClientBrowserCreated", webBrowser, function() loadBrowserURL(webBrowser, "https://www.youtube.com/tv#/watch?mode=transport&v=jofNR_WkoCE") addEventHandler("onClientRender", root, webBrowserRender) end) but this isn't working, not even loading the brower. local webBrowser = createBrowser(1000, 1000, false, false) function webBrowserRender() dxDrawImage(0, 0, 1000, 1000, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true) end addEventHandler("onClientBrowserCreated", webBrowser, function() loadBrowserURL(webBrowser, "https://www.youtube.com/tv#/watch?mode=transport&v=jofNR_WkoCE") addEventHandler("onClientRender", root, webBrowserRender) addEventHandler("onClientCursorMove", root, cm) addEventHandler("onClientClick", root, oc) end end end) function cm(relativeX, relativeY, absoluteX, absoluteY) injectBrowserMouseMove(webBrowser, absoluteX, absoluteY) end function oc(key, state) if state == "down" then injectBrowserMouseDown(webBrowser, key) else injectBrowserMouseUp(webBrowser, key) end end
 - 
	Alternatively you can try this createBrowser dxDrawImage loadBrowserURL local webBrowser = createBrowser(1000, 1000, false, false) function webBrowserRender() dxDrawImage(0, 0, 1000, 1000, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true) end addEventHandler("onClientBrowserCreated", webBrowser, function() loadBrowserURL(webBrowser, "https://www.youtube.com/tv#/watch?mode=transport&v=jofNR_WkoCE") addEventHandler("onClientRender", root, webBrowserRender) end) Here's the preview of this example. http://i.imgur.com/aFkHr6T.png
 - 
	It will easier for people to do that in Mta1.5 Check this https://wiki.multitheftauto.com/wiki/GuiCreateBrowser example from wiki --In order to render the browser on the full screen, we need to know the dimensions. local screenWidth, screenHeight = guiGetScreenSize() --Let's create a new browser in remote mode. local window = guiCreateWindow(200, 200, 1024, 768, "Webbrowser", false) local browser = guiCreateBrowser(0, 0, 800, 600, false, false, window) -- The event onClientBrowserCreated will be triggered, after the browser has been initialized. -- After this event has been triggered, we will be able to load our URL local theBrowser = guiGetBrowser(browser) -- Get the browser element from gui-browser addEventHandler("onClientBrowserCreated", theBrowser, function() -- After the browser has been initialized, we can load [url=http://www.youtube.com]www.youtube.com[/url] loadBrowserURL(source, "http://www.youtube.com") end )
 - 
	The only thing i found in Mta folder is servercache file which contains the server list.
 - 
	http://www.game-state.com/index.php?game=mta
 - 
	Maine ye page start kiya hai abhi bahut likhna baki hai You can translate the remaining part and send it to me or you guy can edit it by yourself. https://wiki.multitheftauto.com/wiki/Sc ... tion_Hindi Here's the paste : http://pastebin.com/etURiXqG
 - 
	I just added an example about bind for gui , you can learn it from there. https://wiki.multitheftauto.com/wiki/GuiSetVisible
 - 
	From fast few days i'm facing Low Fps and High Ping problems http://pastebin.com/GwAZT0YD
 - 
	Tum code banaho aur koi bhi problem hai tho yaha post kaaro ho ham log madat karenge
 - 
	R3mp ka gui editor bahut aashan hai use karne mai. https://community.multitheftauto.com/ind ... ils&id=141
 - 
	never knew 13 comes after 11. on-topic - 15
 - 
	Still not working sir. That should work, post your full code or the part of the code.
 - 
	are you kidding?? This will also make raino to get damage from other weapons.Edit: anyway, Here is the code which will make tank to get damage from Explosion. function tankdamage(attacker, weapon, loss, x, y, z, tyre) if (weapon == 51 and getElementModel(source) == 432 then ----------51 is Explosion id setElementHealth(source,getElementHealth(source) - 500) ------- this will make tank lose 50% heath with Explosion. cancelEvent() end end addEventHandler("onClientVehicleDamage", root, tankdamage)
 
