xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
triggerServerEvent setElementPosition setElementDimension
-
You could make your life hella easier and just download modloader?
-
You have to make your own functions. Take a look: https://wiki.multitheftauto.com/wiki/Main_Page
-
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 )
-
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.
-
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.
-
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.
-
Maybe try to create the vehicle onResourceStart?
-
I did this for "Highlighting by Fro," (exept the plugins\APIs) and i don't see MTA Lua....
-
lol, sorry, but im noob at MySQL, how do i find it?
-
try removing the "if" statements.
-
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 )
-
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 )
-
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. == =========================================
-
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 )
-
Most Decompilers come with alot of errors in the output...
-
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
-
It depends about how the faction system is made.
