Jump to content

Shady1

Members
  • Posts

    906
  • Joined

  • Last visited

  • Days Won

    61

Everything posted by Shady1

  1. setElementInterior(marker, markerInterior) you should try, and refresh your coordinate information,If it doesn't work, I can send you a few pieces of the interior system that I personally use..
  2. hello, I don't quite understand your help so, You put a timer that checks whether the nitrous is turned on in the vehicle it is in,if it is on, it will turn off the nitro, so you can partially do what you want. setVehicleNitroActivated ( vehicle theVehicle, bool state )
  3. I added website opening commands with internal command in mta, but when using image I use "httpSetResponseHeader" with this command, when I restart the project, it appears for 2 seconds, then the images disappear automatically,What commands should I add as extra?
  4. w0w, nice script, i will try this
  5. There is an easy solution, TCT,i will send download link for you. It is a very practical and fast object placement preference, if you are thinking of a different software, write to me. https://community.multitheftauto.com/index.php?p=resources&s=details&id=4746
  6. I will use this on my server, thanks
  7. First post of 2022 Happy new year
  8. hi david1231237, upon your request i am sharing you the download link of superman mod If you have a different request, you can make more descriptive comments and i can help you. https://community.multitheftauto.com/index.php?p=resources&s=details&id=220
  9. nice system, need to download it and try it, keep up the good work.
  10. hello lisandu, i don't understand what you mean exactly because you can't talk about code and mod, so i can give you three or five ideas,If you explain a little more in detail and share the code of the system you want to build, people might be able to help you,Please open a more descriptive topic. now there are 2 methods for this, the first method is to delete and recreate, so you can give the effect of disappearing and visible, this is used if the blip with 0 id is not used, technically, if the blip with 0 id is setBlipColor, it can be, and getAttachedElements you can pull attached elements with this
  11. cara, eu não entendo muito porque você é muito complicado, se você puder compartilhar o arquivo lua corretamente, eu posso ajudar,Você pode consertar a parte do "Jogador" se você ainda receber o mesmo erro, altere ou destrua o lado do triggerClientEvent
  12. Shady1

    Hud-Bug

    put this command inside your package (client) function setStats() if not getElementData(localPlayer,"loggedin") then setPlayerHudComponentVisible("clock",false) setPlayerHudComponentVisible("radar",false) setPlayerHudComponentVisible("money",false) setPlayerHudComponentVisible("health",false) setPlayerHudComponentVisible("breath",false) end
  13. you need to tell exactly your problem, i didn't understand you but as i understand i sent you this,more edit apply set timer. addEventHandler("onPlayerLogin",root,function() if not isElement(source) then return end outputChatBox("Welcome Message.", source, 255, 235, 0, true) end) function ServerMessages1() outputChatBox("Server1.", root, 255, 235, 0, true) setTimer(ServerMessages2,(60000*5),1) end function ServerMessages2() outputChatBox("Server2",root,255,235,0,true) setTimer(ServerMessages3,(60000*5),1) end function ServerMessages3() outputChatBox("Server3", root, 255, 235, 0, true) setTimer(ServerMessages4,(60000*5),1) end
  14. as far as i know, you can encode it by serial id,you can get help from wiki for this,if you can't, contact me privately. https://wiki.multitheftauto.com/wiki/Server_Scripting_Functions#ACL_functions
  15. I have a dayz server and the code to create items on dayz server is "function createItemLoot(lootPlace,x,y,z)" I am opening the interior system, I will place loot in the interior and when I place it, the loot does not appear, I want the loots to appear in the interior : function createItemLoot(lootPlace,x,y,z) local theItemTable = itemTable local theItemTableLootPlaceTable = theItemTable[lootPlace] local theItemTableLootPlaceTableSize = #theItemTableLootPlaceTable local col = createColSphere(x,y,z,1.25) local lootMarker = createMarker(x,y,(z-1),"cylinder",0.5,255,255,255,30) local hasLoot = false lootPilesDataTable[col] = {} setElementData(col,"unknownlootpile",true) setElementData(col,"itemloot",true) setElementData(col,"parent",lootPlace) setElementData(col,"marker",lootMarker) setElementData(col,"MAX_Slots",100) for i = 1,theItemTableLootPlaceTableSize do local item = theItemTableLootPlaceTable if not ((hasLoot or 0) >= 3) then local item5 = item[5] local value = 0 local number = math.random(1,10000)/100 if number <= item5 then value = 1 end if (value > 0) then local item1 = item[1] local ammoName = weaponAmmoNames(item1) if ammoName then hasLoot = ((hasLoot or 0)+1) setElementData(col,ammoName,math.random(1,3)) end hasLoot = ((hasLoot or 0)+1) setElementData(col,item1,value) end else break end end if not hasLoot then local itemData = theItemTableLootPlaceTable[math.random(1,theItemTableLootPlaceTableSize)][1] local ammoName = weaponAmmoNames(itemData) if ammoName then setElementData(col,ammoName,math.random(1,3)) end setElementData(col,itemData,1) end refre:~emLoot(col) end function createlootpilegroups(pickupPositionsTableTypesIndex) local pickupPositionsTableTypes = {"residential","industrial","farm","supermarket","military"} local pickupPositionsTableType = pickupPositionsTableTypes[pickupPositionsTableTypesIndex] if not pickupPositionsTableType then return end local pickupPositionsTableTypeTable = pickupPositions[pickupPositionsTableType] local pickupPositionsTableTypeTableSize = #pickupPositionsTableTypeTable for i = 1,pickupPositionsTableTypeTableSize do local pos = pickupPositionsTableTypeTable createItemLoot(pickupPositionsTableType,pos[1],pos[2],pos[3]) if (i == pickupPositionsTableTypeTableSize) then createlootpilegroups(pickupPositionsTableTypesIndex+1) return end end end
  16. When I place loot inside the interiors, the loots do not appear, I can't find the codes for it, can you help? function createItemLoot(lootPlace,x,y,z) setElementData(col,"itemloot",true)
  17. If you tell me which functions to look at on the wiki, that's enough for me, I have lua knowledge too.
  18. what if i can put color in the names of the players but according to the ACL. These are the ACLs, how can I assign color codes to people automatically, I couldn't find it aclGetGroup("Founder") aclGetGroup("Developer") aclGetGroup("Admin") aclGetGroup("Moderator") aclGetGroup("Support")
  19. I hadn't tried this, now I'm going to try this "content_color" XML and : <setting name="*allowColorcodedNames" value="true" friendlyname="Allow colorcoded names" group="General" accept="false,true" desc="Should the player's color code be used as the display color in scoreboard?" />
  20. I'm glad you worked for me, and I thank you, you are a good person.
  21. first of all thank you for answering me, i tried your codes but it didn't work,
  22. hi, i wrote my scoreboard tabulation rank system, but i can't color the ranks,F2B Founder's color is red I want Developer's color to be Blue, what should I do for that? if(isObjectInACLGroup("user."..accountName, aclGetGroup("Founder"))) then return "F2BFounder" elseif(isObjectInACLGroup("user."..accountName, aclGetGroup("Developer"))) then return "Developer" elseif(isObjectInACLGroup("user."..accountName, aclGetGroup("Admin"))) then return "Admin" elseif(isObjectInACLGroup("user."..accountName, aclGetGroup("Moderator"))) then return "Moderator" elseif(isObjectInACLGroup("user."..accountName, aclGetGroup("VIP"))) then return "VIP" else return "Member" end
  23. Ich habe den Server wieder aktiviert, ich habe einige Features entwickelt, ich warte auf euch alle.
  24. Freunde, ich habe einen mta dayz Server, ich bin Deutscher und Türke Ich habe keine deutschen Freunde auf meinem Server. Wenn Sie die The Walking Dead-Serie mögen, werden Sie diesen Server lieben. Serverfunktionen Server IP : 91.134.166.76:22013 - Item Shop - Advanced group system - Missions - Vehicles of all types - Smart Zombies - NPC Bandit Groups - CCTV - Bases - Lobby - Derby - Race Mode - all databases available - old Accounts available - Shop Token - etc.
×
×
  • Create New...