Jump to content

Vision

Members
  • Posts

    405
  • Joined

  • Last visited

Everything posted by Vision

  1. I did a mistake on code, my bad, but now I fixed it. local numberOfGroups = { 5, 3 } local numberOfIndex = { 5, 4, 3, 53, 14, 33 } addEventHandler("onClientResourceStart", resourceRoot, function() setWorldSoundEnabled ( numberOfGroups [ ( #numberOfGroups ) ], numberOfIndex [ ( #numberOfIndex ) ], false ) setDevelopmentMode (true) end )
  2. numberOfGroups = { 5, 4 } setWorldSoundEnabled ( numberOfGroups [ ( #numberOfGroups ) ], false )
  3. Maybe this setWorldSoundEnabled
  4. Change this addEventHandler("jail.gate.open",gateOpen) to this addEventHandler("jail.gate.open", root, gateOpen)
  5. Try to drop with the amount: 0
  6. Stolen https://community.multitheftauto.com/ind ... ls&id=3746 Original https://community.multitheftauto.com/ind ... ils&id=652 DONE
  7. Type this in Console: upgrade test
  8. Stolen https://community.multitheftauto.com/index.php?p= ... ls&id=6322 DONE
  9. You forgot the event onClientGUIClick
  10. You have an extra 'end' function DaiSoldi(player,quantita) quantita=tonumber(quantita) givePlayerMoney(player, quantita) outputChatBox("|Uso:| /givemoney [giocatore]",player) end addCommandHandler("givemoney", DaiSoldi)
  11. Stolen https://community.multitheftauto.com/index.php?p= ... ls&id=1294 Original https://community.multitheftauto.com/index.php?p= ... ils&id=174 DONE
  12. Vision

    Server Event

    Change this triggerServerEvent ( "spawnTest", source ) to this triggerServerEvent ( "spawnTest", localPlayer )
  13. Please note that this line is also very important in the long run, you will have un-explainable errors popping out of nowhere because when you went to start another resource, this function was ran again. I will remember that next time, thanks.
  14. addEventHandler("onResourceStart", resourceRoot, function ( ) local file = xmlLoadFile ( "spawners.xml" ) if ( file ) then local newChild = xmlFindChild ( file, 'spawner', 0 ) local x = xmlNodeGetAttribute ( newChild, "x" ) local y = xmlNodeGetAttribute ( newChild, "y" ) local z = xmlNodeGetAttribute ( newChild, "z" ) createMarker ( tonumber(x), tonumber(y), tonumber(z-1), "cylinder", 2, 255, 0, 0, 200 ) end end )
  15. Try this function createFileHandler (player) myfile = xmlCreateFile("spawners.xml","spawners") NewNode = xmlCreateChild(myfile, "spawner") xmlSaveFile(myfile) outputChatBox("spawners.xml has successfuly been created!", player, 0,255,0) end addCommandHandler ( "file", createFileHandler ) function createspawners (player) if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "lvl 5" ) ) then local x, y, z = getElementPosition ( player ) -- local rot = getPedRotation ( player ) local int = getElementInterior ( player ) local dim = getElementDimension ( player ) local file = xmlLoadFile("spawners.xml") if (file) then local newChild = xmlFindChild ( file, "spawner", 0 ) xmlNodeSetAttribute ( newChild, "x", x ) xmlNodeSetAttribute ( newChild, "y", y ) xmlNodeSetAttribute ( newChild, "z", z ) xmlNodeSetAttribute ( newChild, "int", int ) xmlNodeSetAttribute ( newChild, "dim", dim ) created = createMarker (x, y, z-1, "cylinder", 2, 255, 0, 0, 200) setElementInterior ( created, int ) outputChatBox ( "Marker has successfully been created!", player, 0, 255, 0 ) xmlSaveFile ( file ) else outputChatBox ( "Spawners: spawners.xml has failed to load! Fixing problem now.", player, 255, 0, 0 ) xmlCreateChild(myfile, "spawner") end else outputChatBox ( "Spawners: This command is only for admins!", player, 255, 0, 0 ) end end addCommandHandler ( "create", createspawners )
  16. C:\Program Files (x86)\Multi Theft Auto 1.3\server\mods\deathmatch\resources\
×
×
  • Create New...