Jump to content

DiSSGen

Members
  • Posts

    23
  • Joined

  • Last visited

Posts posted by DiSSGen

  1. 12 hours ago, JustinMTA said:

    You need to change "vehiclegrunge256" in the script, to the name of the texture the Lamborghini or which ever modded car you're using.
    Because custom models use different texture names sometimes.
    Open the .TXD in MagicTXD or TXDworkshop, and locate the texture name.

    Uh , thank you ❤️ 

  2. nCash = 150
    
    addEventHandler("onPlayerChat",function(message)
    	cancelEvent()
    	if tonumber(getPlayerMoney(source)) >= nCash then
    		takePlayerMoney(source,nCash)
    		outputChatBox("-$"..nCash.."",source)
    		for i,v in ipairs(getElementsByType("player")) do
    			outputChatBox(""..getPlayerName(source)..": "..message.."",v)
    		end
    	else	
    		outputChatBox("You can't send message",source)
    	end
    end)

    @nameforthisforum

  3. try this

    sx, sy = guiGetScreenSize()
    link = "http://mta/local/index.html"
    brwC = guiCreateBrowser(0, 0, sx, sy, true, false, false)
    browser = guiGetBrowser(brwC)
    addEventHandler("onClientBrowserCreated", browser, function()
    	loadBrowserURL(source, link)
    end) -- #irm
  4. try it

    addEventHandler("onClientVehicleCollision", getRootElement(),function (collider,force, bodyPart, x, y, z, nx, ny, nz) 
        if collider and getElementType(collider) == "player" then
    		if not isElementFrozen(source) then
    			if collider ~= source then
    				if not getVehicleOccupant(source,0) then
    					setElementFrozen(source, true)
    					setTimer(setElementFrozen, 1000, 1, source, false)
    				end
    			end
    		end
    	end
    end)

     

    • Like 2
  5. On 29/04/2020 at 14:59, madsup said:

    بنده به کد نویسی علاقه خاصی دارم و مشکل اینه که سال هاست دارم تلاش میکنم اما نمیتونم کد بنویسم. لطفا اگه کسی بگه کجا میتونم کد نویسی یاد بگیرم ممنون میشم.البته کد نویسی برای ام تی ای.

    https://wiki.multitheftauto.com/

    • Thanks 1
×
×
  • Create New...