-
Posts
913 -
Joined
-
Last visited
-
Days Won
61
Everything posted by Shady1
-
look, elements have dimensions,your way of thinking is wrong,Do you want the object to appear?
-
local mark = createMarker(-2409.56738, -598.22534, 130.64844, "cylinder", 3, 0, 255, 0, 155) function enter(hitElement, matchingDimension) if(getElementType(hitElement) == "player") then setElementDimension(hitElement, 44) setElementInterior(hitElement, 3, -2027.9200, -105.1830, 1035.1720) end end addEventHandler ("onMarkerHit", mark, enter) You will be teleported as interior id 3, as I know it should be 10 in normal gta setElementInterior(hitElement, 3, -2027.9200, -105.1830, 1035.1720) if it doesn't work change it to id 10
-
Do you want to change the interior of the player? because dimension and interior are different things
-
if you tell me exactly what you want i can help, explain it nicely.
-
Sorry for the first information I gave, you can use this command int engineRequestModel ( string elementType [, int parentID ] )
-
hi, i sent you a link, can you check it? https://wiki.multitheftauto.com/wiki/CreateObject
-
Contact via DM.
-
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..
-
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 )
-
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?
- 1 reply
-
- 1
-
-
w0w, nice script, i will try this
-
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
-
I will use this on my server, thanks
-
[F2B]Shady#5809 contact via discord.
-
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
-
nice system, need to download it and try it, keep up the good work.
-
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
-
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
-
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
-
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
-
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
-
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
-
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)
-
If you tell me which functions to look at on the wiki, that's enough for me, I have lua knowledge too.
