You don't get it. MTA bans players for using trainers. Meaning that they can't play any server nor they could attempt to join mine because they're banned from "exterior"
I just think why can't mta just kick players from servers if they have a trainer(unless the server allows it)? why banning them if perhaps there would be some mad man who'd like to gather all hackers in a server for fun?
Hello.
My question is "Why is MTA banning hackers?". It's a nice thing that MTA does it, i understand that there are programs which change serial(or alter something related to mta itself), but what about regular gameplay hacks? why can't those players be kicked by AC detection? I miss times when hackers could enter the server and you'd ban them with joy.
I'd say that most used and useful languages are C++(and other C languages) and Java
with basic knowledge of lua, learning those languages won't be so hard but it will take time to learn those languages.
you could've actually googled tutorials by yourself but here are some i found useful:
C++;
http://www.cplusplus.com/doc/tutorial/
http://www.tutorialspoint.com/cplusplus/
http://www.cprogramming.com/tutorial/c++-tutorial.html
Java;
https://docs.oracle.com/javase/tutorial/
http://www.tutorialspoint.com/java/
http://www.javatpoint.com/java-tutorial
There are a lot of tutorials for these languages, just google it.
Not sure what is there to sell in here as there's a pretty similiar code in the forum which can be found, and your script is just a bit better version of that code
Please look down at wiki the function dxDrawText or simply click on that red text on this forum and read it's arguments.
here is your explained mistake
if you read the wiki, you can see that after color argument scale is next which is a number and after scale is font argument which is a string
now here is part where you are wrong
tocolor(255, 255, 255, 255), (0.8/1280)*sWidth, -> (0.8/720)*sHeight,
-- you have that thing on right side instead of "bankgothic", so just delete it and it should draw the text
That's because script is trying to get data [0] from table which doesn't exist.
I dont know if tables can have [0] as index because i haven't tried it but you could try to do it
otherwise try to set default minimum level to 1 and it will work fine
shortly, it's because your level is currently 0 which is not in the table
have you considered using tables? e.g
local sw,sh = guiGetScreenSize()
levelUpTable = { -- required experience to level up,e.g if someone is level 1 he would need 500 xp to level up
[1] = "500",
[2] = "1000",
[3] = "2000"
}
-- now draw it
function levelRequired()
local experience = getElementData(localPlayer,"EXP")
local level = getElementData(localPlayer,"LV")
dxDrawText("Level "..level.." EXP: "..experience.."/"..levelUpTable[level],sw/2,sh/2,sw,sh,tocolor(255,255,255))
end
addEventHandler("onClientRender",root,levelRequired)
there are better alternatives how to update level data instead of doing it onClientRender but this would work fine
It's My hud stolen from Client Files
actually it's an old hud from grafuroam which you stole
putting images and changing hud text abit doesn't make stolen hud yours.
still that resource is stolen so it should get removed.