tuaos
Members-
Posts
83 -
Joined
-
Last visited
Everything posted by tuaos
-
It was some great time i had spend in MTA since early 2011, played in several servers most of freeroams, favourited (Spykes Freeroam) which was really a great server in 2011s. Lately got intrest in scripting from 2014s and joined the forum to guide myself and share what i learned.. and yea it was fun. MTA took me off from being boredom most of the time ( emotional ). So being too old for this in either ways, i am quitting and i know that no one cares. This matter is to thank all MTA Developers & Team for their magnificent work that had me a really great time AND wish you all more success in your future development. Sorry for my bad english. Peace Out Bros. Good Bye and have a Wonderful New Year
-
Use this:- setElementVisibleTo ( playerDefined, playerDefined, false ) playerDefined should be you, so what the function describes/defines for you should be used instead!
-
This is server-sided! So = server.lua. And This does not work if you change skin with freeroam resource! If freeroam, then you have to edit inside that! function skinTeam(oldModel, newModel) local players = getElementsByType ( "player" ) for i,thePlayer in ipairs(players) do if newModel == 18 then if not isPlayerInTeam(thePlayer, "Admin") then cancelEvent() end end end end addEventHandler("onElementModelChange", root, skinTeam) function isPlayerInTeam(player, team) assert(isElement(player) and getElementType(player) == "player", "Bad argument 1 @ isPlayerInTeam [player expected, got " .. tostring(player) .. "]") assert((not team) or type(team) == "string" or (isElement(team) and getElementType(team) == "team"), "Bad argument 2 @ isPlayerInTeam [nil/string/team expected, got " .. tostring(team) .. "]") return getPlayerTeam(player) == (type(team) == "string" and getTeamFromName(team) or (type(team) == "userdata" and team or (getPlayerTeam(player) or true))) end Meta.xml "Skin mod for a group" author="S3Nn4oX" version="1.0.0" type="script" />
-
How is the VIP set to a player in your "vip" resource! If it is by SQL then, obtain players which is vip by: executeSQLQuery Or if it is set in account then: getAccountData Else if you have a team for VIP then its easy with: isPlayerInTeam
-
♥TAPL♥ One of the greatest script-or and the one who thaught me lua with alot help's and examples! And deserves this post!
-
In the 4th line of lua.. set the skin number instead of skinID. On 5th line set your team name instead of "team name"
-
I replaced Bope with admin group.. and it works... local gate = createObject( 980, 1541.0999755859, -1627.6999511719, 15.199999809265, 0, 0, 90 ) local marker = createMarker(1541.49, -1627.82, 13.38, "cylinder", 10, 255, 255, 255, 0) local marker2 = createMarker(1541.49, -1627.82, 13.38, "cylinder", 10, 255, 255, 255, 0) function moveGate(psource) local Deadusergroup = getAccountName(getPlayerAccount(psource)) if isObjectInACLGroup("user."..Deadusergroup, aclGetGroup("Admin")) then moveObject(gate, 980, 1541.0999755859, -1627.6999511719, 9) setTimer(moveBack, 5000, 1) else triggerClientEvent(psource, "senhadabase", psource) end end addEventHandler("onMarkerHit", marker, moveGate) function moveBack() moveObject(gate, 980, 1541.0999755859, -1627.6999511719, 15.199999809265) end So, the problem is either you didn't create group in acl for "Bope"
-
[quote name=..&G:..]Doesn't work... Maybe the eventHandler is wrong? addEventHandler ( "onClientGUIClick", donItemsList, selectedImage ) that Event Handler is ryt
-
Okay, replace your meta with this.. Lol
-
then you have to mention the location on lua too. (ZombieRPG)Weapons/weapons/ak47.txd,(ZombieRPG)Weapons/weapons/ak47.dff function replaceWeapon() local txd = engineLoadTXD("(ZombieRPG)Weapons/weapons/ak47.txd", true) engineImportTXD(txd, 355) local dff = engineLoadDFF("(ZombieRPG)Weapons/weapons/ak47.dff") engineReplaceModel(dff, 355) end addEventHandler("onClientResourceStart", resourceRoot, replaceWeapon) Meta.xml put that lua where meta.xml is located
-
Nothing, do this only...
-
function replaceWeapon() local txd = engineLoadTXD("weapons/ak47.txd", true) engineImportTXD(txd, 355) local dff = engineLoadDFF("weapons/ak47.dff") engineReplaceModel(dff, 355) end addEventHandler("onClientResourceStart", resourceRoot, replaceWeapon) Meta.xml
-
Without that it is not possible to fix! I can fix it and make it working, but it will not have the proper structure.
-
dude it stopped working any one can fix iam willing to pay 10$ who will fix it Its all about exports! you have to have scripts associated with it!
-
Lol Okay Okay! eeeeerrrhhhm...
-
Permission denied You are not an owner of this resoure and may not edit it.
-
What or How do you mean it? And even if this code is stolen/locked, its very easy code!
-
Well you should do this and we will discuss lol, what you mean?