Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/07/20 in all areas

  1. Thisdp's DirectX Graphical User Interface System ( MTASA 2D+3D DxLIB ) This dxlib provide dx gui functions and events to make it easier to use and alternative to change the style more flexibly. Features: 1. Update Check(DGS will notice you if there is a higher version, and you can choose to ignore it or disable it in the config file) Update Command: "updatedgs" 2. Dx GUI Types: Basic: Window Edit Box Button Grid List Image Scroll Bar Scroll Pane Text Label Tab Panel Detect Area Radio Button Combo Box Check Box Memo 3D Interface 3D Text Browser Switch Button Selector Plugin: Media Browser Color Picker Mask Remote Image QRCode Blur Box Rounded Rectangle Nine Slice Scaling Object Preview Support Canvas Scroll Pane's 3D Effect 3. Edit/Memo rewrite ( You can no longer find the problems in dgs, the problems which exist in cegui) 4. Detect Area is efficient when checking whether your cursor is in a complicated shape. 5. Debug Mode , Command: "debugdgs" 6. You can apply shader to the dxgui ( Compatible with some resources like Objec tPreview ). 7. Include CMD, Command: "dgscmd" ( For more help, please input "help" in the CMD ) 8. Memo/Edit rewritten. 9. Object Oriented Programming Class. 10. Render Target Failure Check ( Warns when there's no enough video memory to create render target ). 11. DGS resembles cegui, you can find the similar feeling when scripting with dgs. 12. 48-hour-response service, your suggestions and bug report will be dealt with in 48 hours ( or less, like 12 hours ? ) 13. Custom Style system 14. Built-in shader plugin 15. More properties 16. Built in multi-language support 17. Simple GUI To DGS (G2D) Notice:Do not close your server or stop the script when it is updating. Wiki: https://wiki.multitheftauto.com/wiki/Dgs ( Still Working In Process ) Auto Completion For N++ (Thanks To Ahmed Ly): http://www.mediafire.com/file/m6dm7815d5dihax/Lua.zip Discord Server: https://discord.gg/QEs8q6W Download DGS : https://github.com/thisdp/dgs Notice: Need acl rights to call fetchRemote/getPlayerIP. If you want to sell your script which involves DGS, please exclude DGS from your price. HurtWorld Backpack Panel(Example) DGS Network Monitor(Built-in)
    1 point
  2. Hey, This is a Cinema Gamemode inspired from Garry's Mod (Heavily lol) The building consists of 4 regular sized public theaters, and one big public theater. 3 Pool theaters (Public as well). 6 Private theaters. 1 VIP Theater. Each theater has a preview showing the thumbnail by its door, and its own chat. There is also a global chat and lobby chat. The first person to enter an empty private theater will be able to control it (Kick player, skip video, seek, lock queue and reset theater) Dissimilar: The Cinema uses embed YouTube, which means no ads but some videos may not work I can take requests for adding other services besides YouTube (Twitch can not be implemented because of MTA limitations, all the codes are there but it is switched off because it does not function properly) I do not have a price in mind since the gamemdoe wasn't made to be sold initially, I will take a fair offer.
    1 point
  3. السلام عليكم ورحمة الله وبركاته معكم : KING-MAN سابقاْ MR.BODA اليوم جاي بمود الادفس لسيرفر الوزارة تم صنع المود من قبل SirMix- MR.BODA وانشاء الله سيتم نشر مود زخرفة النك في الشات والوان الشات قريبأ : صور عن المود نتمني ان المود ينال اعجابكم وشكرأ اهداء : @Sir Mix @MrKAREEM @# 7 m o o d @MR.GHOST |, ا̍ڷــڛۜــ؏ـادة @Mr.RoMciS
    1 point
  4. Sorry, I have already abandoned this idea and I didn't look into this topic.
    1 point
  5. Thanks Allisek! I enjoy helping even when it is not needed.
    1 point
  6. The best zombie survival server I've ever played, cool owner always helps even if it's just the slightest stupidity, superbly elaborate game mode If I could, I'd give ten out of ten stars.
    1 point
  7. Thank you both guys, managed to do it your way a it works very well and looks a lot better. But to not start a new thread I will ask here. As you maybe understood I am working on a multigamemode and I would like to ask you, how would you handle file loading? Its running as a one big gamemode, where I created folder race with race client and race server. These files are called by function from those peds clicl events... Lets say, you go to an npc, press F and it does this Race.main() and calls function Race.main from my race folder. Then in Race.main I have trigger for client to handle the drawings, but when I leave race to join lobby I need to separately remove all the drawing events and everything included, such as kill list and so on... Is there a way to disable it all at once? For localPlayer only to not kill the mode for other players...
    1 point
  8. المبنى فيه 5 غرف عامة, 3 غرف مسبح, 6 غرف خاصة وغرف في أي بي الغرف الخاصة اول شخص يدخلها يقدر يتحكم فيها لوحة التحكم فيها طرد, تغيير وقت الفيديو, ريسيت للغرفه و سكيب كل غرفة لها شات خاص فيها وفيه شات عام
    1 point
  9. Probably because you try to use it on server-side, but localPlayer is available only on client-side.
    1 point
  10. Pular sem declarar nada não tem como. Sim, você pode optar por colocar _ nesses parâmetros, mas eu deixaria o nome deles definidos mesmo que não fosse utilizar.
    1 point
  11. Tem o último parâmetro loss então é só fazer uma operação básica getElementHealth() - loss e verifica se é menor ou igual a 0.
    1 point
  12. You should use 'executeSQLQuery' in the beginning. This will be fine for your start ? Let's see how it works.. In the following example, We have 4 values to save them in the Database. the user's account name the user's money the user's car ID the user's custom points Now we going to create a table in local Database and it's name will be "aeroTable" : addEventHandler("onResourceStart",getThisResource(), function() executeSQLQuery("CREATE TABLE IF NOT EXIST `aeroTable`") end ) Done! We have created an aeroTable. But, We haven't created the columns that we need to save the values in them!! Let's make some columns : addEventHandler("onResourceStart",getThisResource(), function() executeSQLQuery("CREATE TABLE IF NOT EXIST `aeroTable` (account_name TEXT, money TEXT, carID TEXT, customPoints TEXT)") end ) Okay, Now we have created the columns, and the names have been as we named them before. Now we going to save the values in this columns .. function SaveValues(accountName,money,carID,customPoints) if accountName and type(accountName)=="string" and getAccount(accountName) then local SQL = executeSQLQuery("SELECT * FROM aeroTable WHERE account_name=?",accountName); if SQL and type(SQL)=="table" and #SQL > 0 then executeSQLQuery("UPDATE aeroTable SET money=?, carID=?, customPoints=?",money,carID,customPoints); print(accountName.." In Database updated!"); else -- There are no values, that means the account_name column is empty and this account we sent it has no values in the Database, So we have to set the values. executeSQLQuery("INSERT INTO aeroTable(account_name,money,carID,customPoints) VALUES(?,?,?,?)",accountName,money,carID,customPoints); print(accountName.." Has been successfully added to the aeroTable"); end return true; end return false; end And we going to add a command for testing : addCommandHandler("SaveMe", function(player,cmd) if not isGuestAccount(getPlayerAccount(player)) then local accountName = getAccountName(getPlayerAccount(player)); if accountName then local money = tostring ( getPlayerMoney(player) ); local carID; if getPedOccupiedVehicle(player) then carID = tostring( getElementModel(getPedOccupiedVehicle(player)) ); else carID = "N/A"; end local customPoints = getElementData(player,"points") and tostring(getElementData(player,"points")) or "0"; SaveValues(accountName,money,carID,customPoints); end end end ) Finally, We going to show the values for that user who just entered this command : "ShowMe" addCommandHandler("ShowMe", function(player,cmd) if not isGuestAccount(getPlayerAccount(player)) then local accountName = getAccountName(getPlayerAccount(player)); if accountName then local SQL = executeSQLQuery("SELECT * FROM aeroTable WHERE account_name=?",accountName); if SQL and type(SQL)=="table" and #SQL > 0 then outputChatBox(SQL[1].account_name,player); outputChatBox(SQL[1].money,player); outputChatBox(SQL[1].carID,player); outputChatBox(SQL[1].customPoints,player); else outputChatBox("Use SaveMe to save your information",player); end end end end ) Hope that was helpfully ? Post your issues here if you don't understand. Full code : addEventHandler("onResourceStart",resourceRoot, function() executeSQLQuery("CREATE TABLE IF NOT EXISTS aeroTable (account_name TEXT, money TEXT, carID TEXT, customPoints TEXT)") end ) function SaveValues(accountName,money,carID,customPoints) if accountName and type(accountName)=="string" and getAccount(accountName) then local SQL = executeSQLQuery("SELECT * FROM aeroTable WHERE account_name=?",accountName); if SQL and type(SQL)=="table" and #SQL > 0 then executeSQLQuery("UPDATE aeroTable SET money=?, carID=?, customPoints=?",money,carID,customPoints); print(accountName.." In Database updated!"); else -- There are no values, that means the account_name column is empty and this account we sent it has no values in the Database, So we have to set the values. executeSQLQuery("INSERT INTO aeroTable(account_name,money,carID,customPoints) VALUES(?,?,?,?)",accountName,money,carID,customPoints); print(accountName.." Has been successfully added to the aeroTable"); end return true; end return false; end addCommandHandler("SaveMe", function(player,cmd) if not isGuestAccount(getPlayerAccount(player)) then local accountName = getAccountName(getPlayerAccount(player)); if accountName then local money = tostring ( getPlayerMoney(player) ); local carID; if getPedOccupiedVehicle(player) then carID = tostring( getElementModel(getPedOccupiedVehicle(player)) ); else carID = "N/A"; end local customPoints = getElementData(player,"points") and tostring(getElementData(player,"points")) or "0"; SaveValues(accountName,money,carID,customPoints); end end end ) addCommandHandler("ShowMe", function(player,cmd) if not isGuestAccount(getPlayerAccount(player)) then local accountName = getAccountName(getPlayerAccount(player)); if accountName then local SQL = executeSQLQuery("SELECT * FROM aeroTable WHERE account_name=?",accountName); if SQL and type(SQL)=="table" and #SQL > 0 then outputChatBox(SQL[1].account_name,player); outputChatBox(SQL[1].money,player); outputChatBox(SQL[1].carID,player); outputChatBox(SQL[1].customPoints,player); else outputChatBox("Use SaveMe to save your information",player); end end end end )
    1 point
  13. localplayer é a variável predefinida para getLocalPlayer() - Para obter o elemento-cliente, isto é, o jogador local. Se ainda não entendeu bem você precisa aprender melhor sobre a diferença entre server-side e client-side Enquanto que thePlayer/player não é nada além de parâmetro ou variável que é definido pelo programador, e não tem nenhuma definição nem em Lua nem no MTA. Esse evento não é cancelável, você vai precisar do evento onClientPlayerDamage para funcionar o cancelEvent.
    1 point
  14. Hi everyone link description don't forget subscribe to my channel
    1 point
  15. Have you already checked other dx libraries? It would be a waste of time to figure out everything from scratch don't you think? For example:
    1 point
  16. my earlier days with gta :) any suggestions? oh yea plot the whole planet earth satellite view, start with some cities, players have to fly to the city with feeling real cheers
    1 point
  17. I would like to report about a Fake Server that using My server name ! Real Server: mtasa://37.59.72.197:27115 Fake Server: mtasa://80.211.233.250:33415  Thank you.
    1 point
×
×
  • Create New...