-
Posts
94 -
Joined
-
Last visited
Everything posted by AncienT
-
i made this: --FORMULA: cos(0)=a*b/|a||b| local x1,y1,z1 = 4,-3,5 local x2,y2,z2 = 9,7,-10 local r1 = (x1*x2)+(-3*7)+(5*-10) local a1 = x1^2+(-y1)^2+(z1)^2 local a2 = x2^2+(-y2)^2+(z2)^2 local r2 = math.sqrt(a1)-math.sqrt(a2) local angle = r1/r2 print(angle) I just do not know if it's the correct formula
-
How can I get the angle between 2 positions?
-
what is the function of <enablesd></enablesd>
-
VIDEO: Discord: Motar#3255 FB: https://www.facebook.com/jesuslopez324 Reason: I don't have time
-
addCommandHandler("unmuteall", function(thePlayer, _, ...) if(isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Staff"))) then for ID,player in ipairs(getElementsByType("player")) do if not isPlayerInACL(player, "Staff") then setPlayerMuted (player, false) end end end end) function isPlayerInACL(player, acl) local accountName = getAccountName( getPlayerAccount(player) ) if accountName ~= "guest" and type( aclGetGroup(acl) ) == "userdata" then return isObjectInACLGroup( "user."..accountName, aclGetGroup(acl) ) end return false end
-
addCommandHandler("muteall", function(thePlayer, _, ...) if(isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Staff"))) then for ID,player in ipairs(getElementsByType("player")) do if not isPlayerInACL(player, "Staff") then setPlayerMuted (player, true) end end end end) function isPlayerInACL(player, acl) local accountName = getAccountName( getPlayerAccount(player) ) if accountName ~= "guest" and type( aclGetGroup(acl) ) == "userdata" then return isObjectInACLGroup( "user."..accountName, aclGetGroup(acl) ) end return false end
-
Probably not getting the player.
-
https://wiki.multitheftauto.com/wiki/SetElementSpeed
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=1600&expanddescr=1
-
Puedes utilizar esta función de la sección useful de la wiki, https://wiki.multitheftauto.com/wiki/SmoothMoveCamera
-
patterns = {"%p", ","} for i,v in ipairs(patterns) do str = string.gsub(str, v, "") end https://stackoverflow.com/questions/25280374/lua-string-gsub-with-multiple-patterns
-
You can use this function, paste in serverside function setAcc(_,account) setElementData(source,"Account",getAccountName(account)) end addEventHandler("onPlayerLogin",getRootElement(),setAcc) and remplace "Account Name:"..getAccountName(getPlayerAccount()) by "Account Name: "..getElementData("Account",getLocalPlayer())
