Jump to content

AliGR

Members
  • Posts

    18
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by AliGR

  1. hello This is kind of impossible, but you have a way... if we want to have 2 types of ak-47 you can replace ak-47 with invisible model and attach new ak-47 model with bone_attach
  2. Hi, I got banned 2-3 years ago and I don't know why And forgive me if I have done something wrong ? My discord : ¯̄ ̶ ͡ ̶ᴢᴡ Alii †#4021 sorry my english is bad
  3. AliGR

    Files

    you can use `fileDelete` https://wiki.multitheftauto.com/wiki/FileDelete
  4. AliGR

    س

    click rast kon rosh settingesho bezar ro inke feghat admine betonan bardaran khodaii az gamemode khudetam nemidoni
  5. --local connection = exports.db:getConnection() account = "" player = nil function writedata(query) if not player then return end local connection = exports.db:getConnection()--I have another script that exports the connection local result = dbPoll(query, 0) if (#result > 0 ) then local up = dbQuery(connection, "UPDATE players SET money = ? WHERE account = ? ", getPlayerMoney(player), account)--Update player money if found result dbFree(up) elseif (#result == 0 ) then local insert = dbQuery(connection, "INSERT INTO players (account, money) VALUES(?, ?) ", account, getPlayerMoney(player))--insert player money if found result end end addEventHandler("onPlayerQuit", root, function(quitType, reason, responsibleElement) local connection = exports.db:getConnection()--I have another script that exports the connection player = source --reset the player element variable if player then account = getPlayerAccount(source)--reset the account variable dbQuery(writedata, connection, "SELECT * FROM players ", source) end end) function returnn(select) local connection = exports.db:getConnection()--I have another script that exports the connection local result = dbPoll(select, 0) for i, v in pairs(result) do if v.money then--check if there is a value setPlayerMoney(player, v.money)--set the player money end end end addEventHandler("onPlayerLogin", root, function(_, acc) local connection = exports.db:getConnection()--I have another script that exports the connection account = acc--reset the account variable player = source--reset the player element variable local select = dbQuery(returnn, connection, "SELECT * FROM players") end) test this
  6. hello , you can use variable to change the image path = "img1.png" addEventHandler("onClientRender",root,funtion() dxDrawImage ( 100, 300, 100, 240, path, 0, 0, 0,tocolor(255,255,255) ) end) addCommandHandler("changeimage",function() path = "img2.png" end)
  7. hello , use this function for get the mouse position function isCursorOnElement( posX, posY, width, height ) if isCursorShowing( ) then local mouseX, mouseY = getCursorPosition( ) local clientW, clientH = guiGetScreenSize( ) local mouseX, mouseY = mouseX * clientW, mouseY * clientH if ( mouseX > posX and mouseX < ( posX + width ) and mouseY > posY and mouseY < ( posY + height ) ) then return true end end return false end
  8. Hello I want to create a blocking system so that one player can block another player for herself !!
  9. Hello Guys I wanted to know if it is possible to silence someone privately for ourselves ?? setPlayerMute ( Local ) Thank you for helping me <3
  10. I did not write anything!I want to know what to write
  11. hi everyone I have a problem making rainbow colors in mta For example, I want the color of a text to change automatically and beautifully I prepared a gif Help me if you can I really need it Thankful
×
×
  • Create New...