Leaderboard
Popular Content
Showing content with the highest reputation on 07/05/17 in all areas
-
This community has grown quite a fanbase and eager players. The staffs here are certified decent and mature. This server was quite an experience for me, playing MTA for 6 years had me searching for unique and topnotch servers such as this, the idea, resources, maps and scripts here were flawlessly made, I'm gonna be honest, if this community grows more reputation and gets to be complex, it will probably sky rise amongst the big servers. Kudos, Martijn.2 points
-
1 point
-
Welcome to FTW Gaming, a new beginning, and a new fresh start, to your MTA Career. We as a team, want to provide you the best possible gameplay, but as a family. We insist, to keep our members, and players, in a safe, friendly and peaceful environment by allowing them to use their own freedom, browsing out Forums, meeting old friends, creating new bonds and much much more. Not only this, get a chance to be a part of the journey, we as a team are working on mini-projects, named behind FTW Gaming, if you want to become a part of it, a BETA Tester, Helper or participator, go ahead and apply if you meet our requirements, why not, we're more than happy to have you. About Us Initially, we set up our clan well back. It all started off as a brief idea, not official, but to create a friendly, safe and stable environment to allow different types of players to spend their time, get to meet others, play together. We had an intention to make a gaming community, which would host multiple servers, starting from Multi Theft Auto, moving to Counter Strike: Global Offensive, Garry's Mod, and even Minecraft. We decided to start small, then grow as a community together, that's why we need your help. FTW Gaming, was released late yesterday, due to come out today, in order to let players and members sign up, and test our systems, including 13 current clan members. What makes us special? Good question, we're deciding to bring something much different. Taking a look at things from a different perspective, to enforce a professional game manner on our players and community members. Not only this, but give players the opportunity to manage their own server, hosted right under our name, to give them the opportunity to make their own project live, we got you covered, all you have to do is meet our requirements. Not only this, as a team, we aim to grow much bigger than the rest, with your help and ideas, make something out of the ordinary and something unique, which would interest multiple players, and as a whole strive for success. Do you guys have a server? We're currently, working on a few separate servers, such as Shooter, Deathmatch, Destruction Derby and a few others, to allow our players and members to train to their max abilities and try out some of our impossible map structures, skilled players, and fully new, built-from-scratch scripts. We will keep you guys updated regarding our servers, under Server category, stay tuned and expect to hear more from us soon. What do I do now? We want to let you know, that we need you! Yes you, we are trying to find many players skilled in different sectors such as, Deathmatch, Shooter, Race, Destruction Derby, Fun and much more. All you have to do is visit our website link below, and then find the Join Requests, and see if you meet our requirements. It's simple and easy and you get a chance to meet new people, start fresh in a new family, and get a chance to play against and with skilled members, within the different types of gamemodes suggested above. Get going, and start registering to stay updated! _______________________________ Website: http://ftw-gaming.com Forums:http://forums.ftw-gaming.com ________________________________ Our Community Servers1 point
-
1 point
-
i had a good check on this server lately, the server looks awesome and fair with scripts. Great Job.1 point
-
1 point
-
That means you'll need to debug both of the if statements, after line 33 do another outputChatBox to see if it gets triggered, if it triggers, check both of the values in the next if statement: local state1 = getAccountData(getAccount(topsSql[1].topName), "currentPlayerName"):gsub('#%x%x%x%x%x%x', '') local state2 = otherPlayer:gsub('#%x%x%x%x%x%x', '') outputChatBox("Values - " .. state1 .. ":" .. state2 ) -- this is your if statement if getAccountData(getAccount(topsSql[1].topName), "currentPlayerName"):gsub('#%x%x%x%x%x%x', '')) == otherPlayer:gsub('#%x%x%x%x%x%x', '') then SQLite tables that you created with the executeSQLQuery should be saved in the registry.db. You can easily view the tables and the data with any SQL browsers you want to, eg: SQLite Browser1 point
-
local szefpozicio = { {2485.87524, -1666.34705, 13.34380}, {2487.87526, -1666.34705, 13.34380} } local szef = createObject (2634, unpack(szefpozicio[1])) local szefrectangle = createColRectangle (2485.8720703125, -1665.8211669922, 5, 5) function szefopen(jatekos) if isElementWithinColShape (jatekos, szefrectangle) then moveObject (szef, 5000, unpack(szefpozicio[2])) outputChatBox (math.random(1, 2)) end end addCommandHandler ("felfeszit", szefopen)1 point
-
this should work local szefpozicio = {2485.87524, -1666.34705, 13.34380,2487.87526, -1666.34705, 13.34380} local szef = createObject (2634, tonumber(szefpozicio[0])) local szefrectangle = createColRectangle (2485.8720703125, -1665.8211669922, 5, 5) function szefopen(jatekos) if isElementWithinColShape (jatekos, szefrectangle) then moveObject (szef, 5000, tonumber(szefpozicio[1])) outputChatBox (math.random(1, 2)) end end addCommandHandler ("felfeszit", szefopen)1 point
-
1 point
-
1 point
-
أعلن إعتزالي من اللعبة والمنتدى نهائيا كان شرف كبير اني اتواجد معكم شكرا لكم #سلاموز1 point
-
1 point
-
You should at least get an overview of most of the functions and probably know the basic, much used stuff well enough to work with. No one ever said you have to learn all the functions with what they return and all their arguments but if you have never heard of functions you will eventually try to solve problems that don't exist. e.g write functions in lua that are already native to MTA. Also you should get a good editor with syntax highlighter and possibly auto completion, I suggest Atom (it has a mta lua plugin), that makes things a whole lot easier to read.1 point
-
1 point
-
1 point
-
local screenW, screenH = guiGetScreenSize() local x, y = (screenW/1024), (screenH/768) local size = y*1.50 function drawText() local playerCoins = getElementData(getLocalPlayer(), "moneycoins") if not playerCoins then playerCoins = "0" end dxDrawRectangle(screenW * 0.6972, screenH * 0.0711, screenW * 0.1500, screenH * 0.0256, tocolor(0, 0, 0, 170), false) dxDrawText("Coin:", screenW * 0.7000, screenH * 0.0711, screenW * 0.7431, screenH * 0.0967, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText(playerCoins, screenW * 0.7431, screenH * 0.0711, screenW * 0.8472, screenH * 0.0967, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) end addEventHandler("onClientRender", root, drawText) function getPlayerCoin() local data = getElementData(getLocalPlayer(), "moneycoins"); thePoints = tonumber(data); return thePoints end fileDelete("c_client.lua")1 point
-
local playerCoins = tostring(getElementData(getLocalPlayer(), "moneycoins")) or tostring(0) Maybe this will do it1 point
-
Instead of row 7, use local playerCoins = tostring(getElementData(getLocalPlayer(), "moneycoins"))1 point
-
Your welcome, I dont know why you get that error, but i think it's fine cuz its working. #wearethevr1 point
-
Try this: addEventHandler("onPlayerLogin", root, function() local acc = getPlayerAccount(source) local coin = getAccountData(acc, "coins") or 0 setElementData(source, "moneycoins", tonumber(coin)) end) addEventHandler("onPlayerQuit", root, function() local acc = getPlayerAccount(source) local coin = getElementData(source, "moneycoins") or 0 setAccountData(acc, "coins", tonumber(coin)) end) addEventHandler("onResourceStart", resourceRoot, function() for _, player in pairs(getElementsByType("player")) do local acc = getPlayerAccount(source) local coin = getAccountData(acc, "coins") if coin then setElementData(player, "moneycoins", tonumber(coin)) end end end)1 point
-
You do not need to learn functions at all. Use wiki as reference and create scripts. You just need to know the syntax well. Editing resources then re-creating them is a great way to learn basics and how to script. This will be slow but eventually you'll learn. Note: Always indent your code.1 point
-
Ideal way to learn Lua is to create small little scripts and start using some of the functions that are present in the Wiki. Learning the functions and seeing how they work is your foot into the door of scripting Lua. Once you get comfortable of these functions, you can then start to develop a mindset to the features you want to design. For example: Bank System: What do I need? set/getAccountData GUI (or commands?) Validation technique (such as checking if the player has the correct amount of money before depositing, and vise-versa from the bank account) ... Hopefully this should help yah1 point
-
1 point
-
1 point
-
Will not that method in pratice trigger for each player? Since client unlike server side executes for a specific player. If using a table of player elements it works, can you explain me how the MTA internally will execute this function using a table on 'sendTo' argument? @Avagard: If your code already works, you don't have to worry about it, you will waste your time. Otherwise, make sure your code doesn't use too much bandwidth, in this case you can explain what you want to achieve and we can give you alternatives.1 point
-
Just draw an image with dxDrawImage instead of dxDrawRectangle1 point
-
1 point
-
I think it's only possible with more rectangles. You could use interpolateBetween to calculate the color.1 point
-
Section Rules 1. Any fulfilled requests or discarded offers shall be reported via the report system in order to be locked and/or archived. This is mandatory, as the goal is to keep this section as clean and accurate as possible. 2.Topics must have a sufficient description of what are you offering or looking for. Eg. if you're looking for a scripter for your gamemode, you must detail what would you need the scripter for. This doesn't exactly involve giving away the whole concepts or whatever you don't want to disclose to the public, but it would be appreciated if you could include more details than just straight single line offers, such as "I need a scripter for a zombie gamemode". Whether or not the amount of detail is sufficient for the nature of your request is a subject to moderator judgement, and failing to meet criteria may result in your post being discarded. Formatting your topic In order to keep the section clean, accurate and easily viewable, it would be appreciated if you could use the following guidelines for your topic: 1. Topic titles should have the form [LF/OFFERING] Brief description [Paid/Non-Paid]. Please make the description as brief as possible here. Eg: [OFFERING] Skilled scripter [Paid] [OFFERING] Rookie modeller looking for some practice [Non-paid] [LF] Any-level scripter for a small server [Non-Paid] 2. The first post should be written in at least 2 parts: first part should contain a brief description of yourself (and/or the server or community you are from) second part should elaborate on what are you requesting/offering, once again, as detailed as you possibly can/want1 point