Jump to content

ma2med

Members
  • Posts

    178
  • Joined

  • Last visited

Everything posted by ma2med

  1. ma2med

    Problem with function

    well it's work when you crouch, move on left/right and press SPACE you can get up while you move on left/right
  2. hi, I was having cbug script in 1.3.5 and when I update my MTA server to 1.4 the function setGlitchEnabled ( "fastmove", true ) don't work anymore. help pls.
  3. I fixed it, I compressed the image
  4. (its show texture of cj's boxer)
  5. hi I made custom object(box) and its working good but the txd is bugging /screen/: PS: Idk if its good forum
  6. ma2med

    Help

    yes for all players but when I do that it's still showing it's bug maybe?
  7. ma2med

    Help

    I wan't hide the nametag from all players but it's not working it's still show
  8. ma2med

    Help

    hi, i was doing small script but it's seem like setPlayerNametagShowing don't work: hasClicked = true addCommandHandler("ok",function() if hasClicked == true then for i,player in ipairs(getElementsByType("player")) do setPlayerNametagShowing ( player, false ) end hasClicked = false else for i,player in ipairs(getElementsByType("player")) do setPlayerNametagShowing ( player, true ) hasClicked = true end end end )
  9. Download latest version of slither.lua (Dependency) Download latest version of async.lua Update your meta.xml <script src="path/to/lib/slither.lua" type="shared" /> -- it. <script src="path/to/lib/async.lua" type="shared" /> Check it. I already do that but I changed the script location (path/to/lib/slither.lua) to (slither.lua) same for the second one
  10. There is error I can't use it: 'attempt to call global 'class' (a nil value) at line 7'
  11. ma2med

    [HELP] Tables

    I find but thanks anyway.
  12. ma2med

    [HELP] Tables

    Perfect, thanks you.
  13. ma2med

    [HELP] Tables

    Take the example it's same.
  14. ma2med

    [HELP] Tables

    He wants to prevent "spam" - in his example there is 2x "apple" and he wants to output it only once. Yes
  15. ma2med

    [HELP] Tables

    No, I want organize it. (this is an example with the fruits)
  16. ma2med

    [HELP] Tables

    fruits = {} table.insert(fruits,{"banana",5}) table.insert(fruits,{"apple",1}) table.insert(fruits,{"cherry",4}) table.insert(fruits,{"banana",2}) table.insert(fruits,{"apple",8}) for i,v in ipairs(fruits) do outputChatBox(v[1].." = "..v[2]) end Hi, I'm searching a way for outputchatbox : ---[[ banana = 7 apple = 9 cherry = 4 ]]-- But it's output .. ---[[ banana = 5 apple = 1 cherry = 4 banana = 2 apple = 8 ]]-- But I don't find, thanks in advance
  17. ma2med

    help

    function table.random ( theTable ) return theTable[math.random ( #theTable )] end function getMaps() local resources = getResources() local tablemaps = {} for i,map in ipairs(resources) do if getResourceInfo(map,"type") == "map" and getResourceState(map) == "loaded" then table.insert(tablemaps,map) end end return tablemaps end function startRandomMap() local maprandom = table.random(getMaps()) startResource(maprandom) end
  18. You can make this: function dxDraw3DText(text,x,y,z,red,blue,green,alpha,size,maxDistance) if text and x and y and z and red and blue and green and alpha and size and maxDistance then local a, b, c = getElementPosition (localPlayer) local thex, they, thez = getScreenFromWorldPosition( x, y, z ) if a and b and c and thex and they and thez <= maxDistance then if thex and they then dxDrawText( text, thex, they, _, _, tocolor( red, blue, green, alpha ), size, "default", "center", "center" ) end end end end There is another scripts on the community.
  19. It's work for me, did you put "setDevelopmentMode" in client ?
  20. Simply, --SERVERSIDE addEventHandler("onPlayerChat",getRootElement(),function(msg,msgtype) text = string.lower(msg) local red, green, blue = getPlayerNametagColor(source) outputChatBox(getPlayerName(source) ..": #EBDDB2".. text,getRootElement(),red,green,blue,true) cancelEvent() end )
  21. Maybe unbind the teamsay key and add the clan say?
×
×
  • Create New...