Jump to content

itHyperoX

Members
  • Posts

    522
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by itHyperoX

  1. itHyperoX

    Gate help

    u welcome local opencommand = "gate" --open command local closecommand = "gate1" --close command local ACL = "Server Owner" --acl local GateObject = 3036 --object local OpenTime = 6000 --opening second local rotX, rotY, rotZ = 0, 0, 90 --rotations local Defx, Defy, defz = 2055, -1697, 14.199999809265 --closed position local opx, opy, opz = 2055, -1697, 10 --opened position --create the gate (DO NOT EDIT) local ggate = createObject ( GateObject, Defx, Defy, defz, rotX, rotY, rotZ) --DO NOT EDIT function gateopen ( p ) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(p)), aclGetGroup(ACL)) then moveObject (ggate, OpenTime, opx, opy, opz) outputChatBox("gate open", p,0,255,0,true) else outputChatBox("u dont have permission", p,0,255,0,true) end end addCommandHandler( opencommand, gateopen) function gateclose ( p ) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(p)), aclGetGroup(ACL)) then moveObject (ggate, OpenTime, Defx, Defy, defz) outputChatBox("gate closing", p,0,255,0,true) else outputChatBox("u dont have permission", p,0,255,0,true) end end addCommandHandler( closecommand, gateclose)
  2. https://wiki.multitheftauto.com/wiki/SetWorldSoundEnabled
  3. https://wiki.multitheftauto.com/wiki/SetElementData https://wiki.multitheftauto.com/wiki/GetElementData
  4. u want a command teleport or what?
  5. eeee, calm down lol
  6. https://luac.multitheftauto.com/ after you can start the resource.
  7. u mean the "VIP" image?
  8. They using https://wiki.multitheftauto.com/wiki/SetVehicleVariant https://wiki.multitheftauto.com/wiki/Vehicle_variants
  9. Thanks Dzsozi!
  10. Thanks Hit again But i wanted like this: if typee == 0 then weather = "Very Hot" elseif typee == 1 then weather = "Hot" elseif typee == 2 then weather = "Rain" i hoep you understand.
  11. solved
  12. not working, but thanks
  13. Hiii. Whats the problem? I can pay money to player - amount, or when i pay more than money i have, the system give that amount to player. function payfunction(player,cmd,playername,money) if playername and money then local player2 = getPlayerFromNamePart(playername) if player2 then if tonumber(money) and tonumber(money) >= 1 then givePlayerMoney(player2,tonumber(money)) takePlayerMoney(player,tonumber(money)) end end else outputChatBox("/pay [Player] [Amount]",player) end end addCommandHandler("pay",payfunction) function getPlayerFromNamePart(name) local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil if name then for _, player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end
  14. .
  15. delete please
  16. Hi guys. The script: local oldRand = 1 function settheweather() repeat typee = math.random(0, 12) until oldRand ~= typee if typee == 0 then weather = "Weather1" elseif typee == 1 then weather = "Weather2" elseif typee == 2 then weather = "Weather3" elseif typee == 3 then weather = "Weather4" elseif typee == 4 then weather = "Weather5" elseif typee == 5 then weather = "Weather6" elseif typee == 6 then weather = "Weather7" elseif typee == 7 then weather = "Weather8" elseif typee == 8 then weather = "Weather9" elseif typee == 9 then weather = "Weather10" elseif typee == 10 then weather = "Weather11" elseif typee == 22 then weather = "Weather12" end setWeather (tonumber(typee)) outputChatBox("[Weather] " .. weather .. " ", getRootElement(), 255, 255, 20, true) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function () settheweather() setTimer(settheweather, 1800000, 0) end ) error: "codeServer.lua:48: attempt to concatenate global 'weather' (a nil value) Anyone can help me please?
  17. Im not used for roleplay server.. Used for private play server.
  18. please guys
  19. Hi. Anyone can send me the basic roleplay mod please? I needed to reinstall my pc... and everything went.. Thanks. ui: used the login panel, and the admin system for my private play server..
×
×
  • Create New...