-
Posts
1,134 -
Joined
-
Last visited
-
Days Won
37
Everything posted by NeXuS™
-
Use [ code] tags instead of quote. Show us the full code.
-
@KingBC I'd start it from zero. Create your own gamemode. It is a good way to learn actually. And if you get stuck somewhere, you could ask us on this forum. If we see that you actually want to learn, and you are not someone who are looking for the "free-scripting" in the Scripting section, you'll get a ton of help.
-
getVehicleNitroLevel, getElementHealth.
-
You have to use a shader as Tommy said.
-
This script does nothing, just gets the original handling. Give us the whole code if you want some help.
-
function consoleSetPlayerPosition(source, commandName, posX, posY, posZ) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ("Admin")) then setElementPosition(source, posX, posY, posZ) end end addCommandHandler("setpos", consoleSetPlayerPosition )
-
You can create a call in the PHP file to the MTA server.
-
rT = getRealTime(1519257600) year = rT.year + 1900 month = rT.month + 1 day = rT.monthday local text = string.format("%02d/%02d/%04d", month, day, year) Try this.
-
I was explaining in a situation where everything was fine, and he disconnected.
-
Where is the "data" table tho?
-
If you want to create an unoptimized script, here ya go. setTimer(function() for i, k in pairs(getElementsByType("player")) do savePlayerData(k) end end, 1000, 0)
-
There is no way it isn't saved with this method. It is called every single time a player is disconnected.
-
addEventHandler("onPlayerQuit", root, function() savePlayerData(source) end) Try it with this.
-
How do you call the savePlayerData function?
-
You didnt get that GIF on the internet. It is exactly mine, and is redirected onto my UPLOAD.
-
gaming i Want to Learn MTASA Scripting NOT MTA WIKI :@
NeXuS™ replied to Hamza Rajput's topic in Scripting
First, you should learn the Lua manual. -
And it seems like upon reconnecting, the collisions position is fixed, and it is at the position it should be, with the event working just fine.
-
At vehicles, it works. But on objects, it is totally useless. It says I just entered a colshape which is about 40 units away.