Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. xXMADEXx

    gsub

    hello guys, i got this code: :gsub('#%x%x%x%x%x%x","") but, i don't know what "#%x%x%x%x%x%x" means. Is there somewhere i can find how to write one of those? Thanks ~xXMADEXx
  2. triggerServerEvent setElementPosition setElementDimension
  3. You could make your life hella easier and just download modloader?
  4. You have to make your own functions. Take a look: https://wiki.multitheftauto.com/wiki/Main_Page
  5. TRy this, but if it dosnt work, use "/debugscript 3" in game. SFAirport1Gate54 = createObject (3115, -267.79998779297, 3050.6999511719, 103.59999847412, 0, 0, 2) addCommandHandler("carrisu", function (thePlayer) local id=getElementModel(thePlayer) moveObject(SFAirport1Gate54,5000,-267.79998779297,3050.6999511719,118.09999847412) end ) addCommandHandler("carrigiu", function (thePlayer) local id=getElementModel(thePlayer) moveObject(SFAirport1Gate54,5000,-267.79998779297,3050.6999511719,103.59999847412) end )
  6. Well, if you just want to learn how to script, is what i did was download scripts from mta community, and study. Or, if you like to read (not me) you can read the LUA manuals.
  7. It kinda depends how much, because most scripters are cough up making their own game modes. I recommend: SolidSnake14, but he dosn't do full gamemodes.
  8. Hello everyone, alot of people who are new to scripting don't know how to loop a function, and without know how to loop, you arn't able to do very much. So, here is a little tutorial that covers the basics of looping.
  9. Are you willing to pay?
  10. Maybe try to create the vehicle onResourceStart?
  11. I did this for "Highlighting by Fro," (exept the plugins\APIs) and i don't see MTA Lua....
  12. lol, sorry, but im noob at MySQL, how do i find it?
  13. humm, weird, im not sure, maybe: addEvent("GetData",true) addEventHandler("GetData",getRootElement(), function ( him ) local Player = getPlayerFromName(him) local Account = getPlayerAccount(Player) if Account then local AccountName = getAccountName(Account) or "N/A" local IP = getPlayerIP(Player) local Serial = getPlayerSerial(Player) local Health = getElementHealth(Player) local Armor = getPedArmor(Player) local Skin = getElementModel(Player) local team = getPlayerTeam(Player) if team then local teamName = getTeamName(team) or "N/A" local Money = getPlayerMoney(Player) local x,y,z = getElementPosition(Player) local Area = getZoneName ( x,y,z ) local Dimenison = getElementDimension(Player) local Interior = getElementInterior(Player) if not isPedInVehicle(Player) then return end local VehicleID = getElementModel(getPedOccupiedVehicle(Player)) local VehicleName = getVehicleName(getPedOccupiedVehicle(Player)) local VehicleHealth = getElementHealth(getPedOccupiedVehicle(Player)) if ( Player and him and AccountName and IP and Serial and Health and Armor and Skin and teamName and Money and x and y and z and Area and Dimenison and Interior ) then triggerClientEvent(source,"SetTextSelectedPlayerInfo",source,Nick,AccountName,IP,Serial,Health,Armor,Skin,teamName,Money,x,y,z,Area,Dimenison,Interior,VehicleID,VehicleName,VehicleHealth) end end end end )
  14. Can you PM me the full code, so i can try to fix? (I hate trying to script, if i don't know what the result is )
  15. Hello everyone! Today I released my MySQL server logs that i just made, here you can keep up with the updates... This is just a basic resource, that connects to an MySQL server, and will output your logs there. I have made an export for the script (outputServerLogDB.) To use the export, just use the following format: exports["mysqlLogs"]:outputServerLogDB("your Message Here") -- Replace "mysqlLogs" with the resource name. in the future pretty soon, i will add a "type" option, and you can select what the type is... For example: exports["mysqlLogs"]:outputServerLogDB("your Message Here", "Player Chatbox") Ill add a new colum into the MySQL with types.. I hope you like my resource. Download: https://community.multitheftauto.com/index.php?p= ... ls&id=6981 ========================================= == If you find ANY bus, pleaseeee report to me. == =========================================
  16. Not sure, but try this: addEvent("GetData",true) addEventHandler("GetData",getRootElement(), function ( Player ) local Nick = getPlayerName(Player) local Account = getPlayerAccount(Player) if Account then local AccountName = getAccountName(Account) or "N/A" local IP = getPlayerIP(Player) local Serial = getPlayerSerial(Player) local Health = getElementHealth(Player) local Armor = getPedArmor(Player) local Skin = getElementModel(Player) local team = getPlayerTeam(Player) if team then local teamName = getTeamName(team) or "N/A" local Money = getPlayerMoney(Player) local x,y,z = getElementPosition(Player) local Area = getZoneName ( x,y,z ) local Dimenison = getElementDimension(Player) local Interior = getElementInterior(Player) if not isPedInVehicle(Player) then return end local VehicleID = getElementModel(getPedOccupiedVehicle(Player)) local VehicleName = getVehicleName(getPedOccupiedVehicle(Player)) local VehicleHealth = getElementHealth(getPedOccupiedVehicle(Player)) if ( Player and Nick and AccountName and IP and Serial and Health and Armor and Skin and teamName and Money and x and y and z and Area and Dimenison and Interior ) then triggerClientEvent(source,"SetTextSelectedPlayerInfo",source,Nick,AccountName,IP,Serial,Health,Armor,Skin,teamName,Money,x,y,z,Area,Dimenison,Interior,VehicleID,VehicleName,VehicleHealth) end end end end )
  17. Most Decompilers come with alot of errors in the output...
  18. Hello all, im making VIP system, and im not sure how to get the data from my SQL when the player logs in.... Here is my code: addEventHandler("onPlayerJoin", root, function () dbQuery(loadPlayersVIP, dbConnection, "SELECT * FROM Freeroam_VIP_Players", source) end ) function loadPlayersVIP(hand,who) sql = dbPoll(hand, 0) for i,v in ipairs (sql) do if (v["account"]==getAccountName(getPlayerAccount(who))) then setElementData(who, "VIP", v["level"], true) end end end and here is an image of the MySQL
  19. It depends about how the faction system is made.
  20. xXMADEXx

    md5

    yea, but i have one website, and is it possible to link MTA with it, for them to get their password?
×
×
  • Create New...