Jump to content

FlyingSpoon

Members
  • Posts

    749
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by FlyingSpoon

  1. I am having problems, I using a basic Roleplay Gamemode, on my localhost which will not be published, but I am having problems converting this script over to MySQL Usage so it works with my Roleplay Gamemode. function executefunction(funcname, ...) if tostring(funcname) then local arg = { ... } if (arg[1]) then for key, value in next, arg do arg[key] = tonumber(value) or value end end loadstring("return "..funcname)()(unpack(arg)) end end ERROR: Client.lua 1: attempt to call global 'executefunction' (a nil value) The changes I have made to the script... I have added in triggerServerEvent's to check in the MySQL Side. if upg == true then if upid > 3 then local ex = doesUpgradeExist(upid) if not ex then if triggerServerEvent("hasMoneyPlayer",localPlayer,tonumber(amount)) then showSure("Do you want to buy "..item.." By "..price.."$ ?","buyUpgrade",item,upid) end else showSure("You already have "..item.." do you want to remove it ?","removeUpgrade",item,upid) end else if triggerServerEvent("hasMoneyPlayer",localPlayer,tonumber(amount)) then showSure("Do you want to buy "..item.." By "..price.."$ ?","buyPaintjob",item,upid) end end end end if menu == 'VEHICLE UPGRADES' then if string.lower(item) == string.lower('Hydraulics') then local ex = doesUpgradeExist(1087) if not ex then if triggerServerEvent("hasMoneyPlayer",localPlayer,tonumber(amount)) then showSure("Do you want to buy "..item.." By "..price.."$ ?","buyUpgrade",item,1087) end else showSure("You already have "..item.." do you want to remove it ?","removeUpgrade",item,1087) end elseif string.lower(item) == string.lower('PLATE NUMBER') then showSure("Do you want to change your "..item.." By "..price.."$ ?","changePlatenumber",item) end end ------ if menu == MAIN_MENU_NAME then if item == 'VEHICLE FIX' then if triggerServerEvent("hasMoneyPlayer",localPlayer,tonumber(amount)) then showSure("Do you want to buy "..item.." By "..price.."$ ?","buyVehicleFix",item,upid) end elseif item == 'VEHICLE COLOR' then if triggerServerEvent("hasMoneyPlayer",localPlayer,tonumber(amount)) then showSure("Do you want to change color of your vehicle By "..price.."$ ?","buyVehicleColor",item,upid) SERVER SIDE--- addEvent("takeMoney",true) addEventHandler("takeMoney",root,function(amount) if amount then --local para = getElementData(source,"Money") --setElementData(source,"Money",para-amount) exports.global:takeMoney(source, tonumber(amount)) end end ) function hasMoneyPlayer( amount ) exports.global:hasMoney(source, tonumber(amount)) end addEvent("hasMoneyPlayer") addEventHandler("hasMoneyPlayer", root, hasMoneyPlayer) Please someone help me asap!
  2. Bad Advertisement. It's like you're about to steal someone's scripts.
  3. Awesome, I know it's smooth for games. I tried out GTA V on my PC for some reason it runs great, but when I ran it on Windows 8.1 it was crashy, and 15 FPS. Now 30-40 FPS.
  4. Penguin, you're saying this as if you're a professional scripter :D ( No offence ) But Tutorials helped me a lot, although I am not a top scripter, I would put myself as learning to in the middle. I am getting there, by tutorials. As many aspects are not covered properly in the Wiki of MTA, so in Tutorials it's done in more depth for the people who do not understand. Good Luck for the new Beginners
  5. Exactly @DeVo - With Windows 10 new features, you cannot stop yourself from getting it, it's like you're destined to get it and check out the features. They're so amazing. I haven't used Cortana yet, I have used it 2-3 times, but it's was for searching something that I couldn't find. Always detects the voice correctly, and never makes mistakes. Another feature I recognised was, Imagine you have just installed your system, and you do not have any Anti Virus installed.Then when 'Windows Defender' realises this, it is boosted to the maximum performance so what ever you install/is installed it analyses it thoroughly to detect and virus's, maliciousness etc. I never had this feature until now ( Note: Once you install a third-party AntiVirus, Windows Defender might automatically turn off )
  6. Well... It depends, I heard for people who are doing it now or later than 29 July, it can take up to 2-3 days for the Updates to show up in Windows Update.
  7. No problem Good luck @XeoN- : Hope you enjoy your product.
  8. Windows 10 was mainly created because, When people upgraded from Windows 7 to Windows 8/8.1 they didn't know how to use the interface, and there were unique features, which were completely different from Windows 7. So basically, Windows 7 users had to start from scratch by learning the system and how it works, and this had disappointed customers, and that's why many stayed to the Windows 7 system. So, Microsoft decided to create Windows 10, a system which is similar to Windows 7 and Window 8, with features for both Windows 8 and 7 Users, meaning they don't have to learn how this new system will function, they would already know how to use it. By bringing back the Start Menu similar to Windows 7 and many old features, this encouraged Windows 7 users to upgrade to Windows 10. Windows 10, was going to be called Windows 9 first, then they decided Windows One. But they decided to give Windows a new start, and naming in Windows 10, to forget all the other systems of Windows were ever made, and give Windows Users a fresh start with a system they are already familiar with and know how to use.
  9. Burst RAM does exist, I purchased many previous VPS's with Burst RAM.
  10. I found a working activation key nvm And mine is Windows 10 Pro x86 <3 MTA runs awesome on it lol, not even 1 lag at all and FPS is always 60+
  11. I used the Offline Installer, but I did a clean install. Soo... I didn't get any product key.
  12. Anyone know how I can get a free license key, because I did a fresh installation of it and it's says Windows isn't activated. So please anyone help out - Windows 10 Pro!
  13. My experience was great! I bought a battery for my laptop, disconnected all wires related to the LCD Screen and casing. And reinstalled the OS to Ubuntu ( via using my PC ). So, once my current PC finishes updating, then I will create a small storage home server and maybe run a private MTA Server for scripting purposes on my Laptop.
  14. I understand... try opening a thread in MTA Support section.
  15. I would say Linux all the way for gameservers, And it completely depends on the resources and how efficient and optimized they're. The more optimized and smaller they're the more players it will be able to handle. But make sure to keep the traffic down so, you don't receive large amounts of lag. Also, I once hosted on a 1 GB RAM VPS, 20 slots and it was perfect.
  16. There can be a few reasons why - 1. Check if your Firewall is blocking the port, if you don't know, allow the port through the firewall. 2. Make sure no other service/server is running the same port. 3. Check if your router has port forwarding options/if so then allow this port 22126 as UDP. 4. If none of the above works, try restarting your PC or something.
  17. Some negatives I found about Shared Hosting - ♤ The biggest problem is the limited resources at your disposal. ♤ Sharing a server is sharing system resources with other users on one physical machine and therefore every user has some restrictions on their service. ♤ For example, if any of the users on the shared server uses a lot of traffic, CPU cycles, email capabilities etc, you or other individuals on the same machine are likely to experience worse shared hosting performance. ♤ One more downside is not being able to install modules and programs on the server you need in order to run your own web site and scripts. ♤ Many ports may be blocked because they're in use by other users or restricted! So what would you choose? In my opinion I would choose a normal VPS, but 2 major things may be to stick with a Shared Hosting would be, if you know that - ♤ You will receive low traffic. ♤ Your server will be standby and will use the least amount of power.
  18. So, who is better: #1 Hosting VPS: 2048 MB RAM,80GB Storage,4096 MB Burst RAM,x4 CPU (Shared),2 TB Bandwidth,1 IPv4,Virtualizor Panel,Full Root Access,Choice of Linux OS,OpenVZ (hosted in germany frankfurt) = 12$ Or #2Hosting VPS: 4 GB Ram, 30 GB storage , 4 vcores, 1 IPv4, Full root access , Choice of Linux OS or Windows (hosted in Roubaix France) = 17$ Remember, there are better offers out there, I can find you a cheap reliable, and powerful VPS for a great price! I hooked my friend up with a really good provider with outstanding specifications, but if you want to choose from one of the above, I would say #1 but there may be some small concerns - This is because, It consists of 2 GB RAM and 4 GB Burst RAM, so in case the 2 GB RAM is in use at it's max, it can use some of the Burst RAM, sometimes there is a certain amount of time limit on how long you can use the Burst RAM, over usages may lead to termination of VPS. Secondly, the storage is 80 GB, so depending on how large your server is, 80 GB is more than enough. And also it depends on how many files your web server uses and game server. Furthermore 4 vCores is also more than enough, depending on how many GHz your CPU is running it would be perfect, to run your gameserver and web server at a constant and stable level. The problem I really have with VPS 1 is that it's shared, meaning many ports may be blocked. I was once with a shared vps, and they told me to pay to open up certain ports, which really sucked and I stopped hosting with them, so be sure what ports you want open And also a Shared VPS may limit your access across the VPS. Finally, 2 TB should be more than enough, again depending on your gameserver and how many unique players it gets and the download amount, you should optimize your resources for the least possible lag, and your website traffic shouldn't be too high, to get the lowest bandwidth usage, but it shouldn't be a problem The rest is fine. VPS #2 is not bad, but the disk space is a little low, other than that it's perfect. You can choose what VPS you desire!
  19. I heard many say it's not supported for Windows 10, I am shocked if this is true, as Multi Theft Auto is on the top of my list after, Battlefield Play4Free died and NFS World ( Still got it to work though - Hint: Offline Mode ) So, if MTA does work let me know! Please asap!
  20. Thanks for the function, which I already knew.
  21. *cough* *cough* I never told you to make any script for me, I asked you is there a way, and if yes, what are the functions? If you dont want to help, dont help. I never asked you in the first place Enjoy your day.
  22. Is there a way I can make a 2 minute timer, and display the countdown on a GUI Label or DxText?
×
×
  • Create New...