Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. If you want to replace a SKIN model, you'll need the model and the texture files. If you want to attach a shark object to a player, you must use: createObject attachElements
  2. You can replace a SKIN model with a shark (if you got the model of course).
  3. That's not a function, that's a object created by createObject attached to the player.
  4. My script works perfectly, you must add the resource which has the script to restart them to the ACL.
  5. Actually myonlake, setElementInterior has 3 optional arguments, posX, posY, posZ.
  6. Use setElementInterior to set a element interior.
  7. Castillo

    Skin

    No se puede remplazar la ropa de CJ, ni CJ que yo sepa.
  8. This should go in the "Scripting" section. 1): addEventHandler("onClientResourceStart",resourceRoot, function () setBlurLevel(0) end) 2): addCommandHandler("setvehiclecolor", function (thePlayer, cmd, r, g, b) local vehicle = getPedOccupiedVehicle(thePlayer) if (vehicle and tonumber(r) and tonumber(g) and tonumber(b)) then setVehicleColor(vehicle, tonumber(r), tonumber(g), tonumber(b)) end end)
  9. Take a look at the resource settings from the Admin Panel, you can disable options.
  10. Castillo

    vote

    DON'T DOUBLE POST AND WAIT FOR AN ANSWER. You could create your own vote system too, shouldn't be hard. Edit: Try something like this: local pollDidStart = exports.votemanager:startPoll { title='Do you want to give $5 to everyone?', percentage=65, timeout=10, allowchange=true, visibleTo=getRootElement(), [1]={'Yes', 'giveMoney', getRootElement(), true}, [2]={'No', 'giveMoney', getRootElement(), false}, } addEvent("giveMoney",true) addEventHandler("giveMoney",root, function (boolean) if (boolean) then for index, player in ipairs(getElementsByType("player")) do givePlayerMoney(player, 51) end end end)
  11. The same things happens to me... I don't know I have the file too. Edit: I found the problem, the XML wasn't correct: "resourceName"/> P.S: Copy my SCRIPT again, I fixed a error.
  12. Are you completely sure that the file is called "resources.xml" and not "resource.xml"?
  13. As far as I know, slothbots need's a bug fix in MTA 1.1.1.
  14. Do you have the file "resources.xml"?
  15. vehicle1 = createVehicle ( 411, -61.252086639404, -303.81872558594, 5.2296872138977, 0, 0, 90 ) setVehicleHeadLightColor (vehicle1, 0, 200, 255) setVehicleColor ( vehicle1, getColorFromString("#FF0000") ) -- It'll set the vehicle color to RED. addVehicleUpgrade (vehicle1, 1079) addVehicleUpgrade (vehicle1, 1010)
  16. Well, as you're new to Lua scripting I won't be rude , but this is a mess . What I understand is that you're trying to restart resources from a XML file. -- resources.xml "myResourceName"> function restartResources () local resourcesFile = xmlLoadFile("resources.xml") if (not resourcesFile) then outputDebugString("Failed to load 'resources.xml'.",2) return end for index, child in ipairs(xmlNodeGetChildren(resourcesFile)) do local resName = xmlNodeGetAttribute(child, "name") local resource = getResourceFromName(resName) if (resource and getResourceState(resource) == "running") then restartResource(resource) end end xmlUnloadFile(resourcesFile) end setTimer ( restartResources, 10000, 0 )
  17. Castillo

    vote

    The resource "votemanager" has a vote system.
  18. That's wrong Yakuza... he's already refreshing every render.
  19. race_starter_pack doesn't use the GTA money system... it uses ELEMENT DATA.
  20. Are you using any kind of custom money system? like race_starter_pack one.
  21. That's just a BIG USELESS reply. @zombienation: Take a look here: https://wiki.multitheftauto.com/wiki/Res ... ustomblips
  22. Castillo

    Problem

    local Marcklbara = createMarker( 1457.3000488281, -1010.799987793, 27.89999961853, 'arrow', 2, 0, 255, 0, 150 ) local Marcklde5el = createMarker( -1894.73, 653.08, -64.42, 'cylinder', 1.5, 255, 0, 0, 150 ) function Entrer( hitPlayer, matchingDimension ) local team = getPlayerTeam(hitPlayer) if (not team) then return end if (getTeamName(team) == "Criminal") then setElementPosition ( hitPlayer, -1901.87, 653.26, -63.42 ) else outputChatBox ( "You cannot enter. You need to be a criminal.",hitPlayer ) end end addEventHandler( "onMarkerHit", Marcklbara, Entrer ) function Sortie( hitPlayer, matchingDimension ) local team = getPlayerTeam(hitPlayer) if (not team) then return end if (getTeamName(team) == "Criminal") then setElementPosition ( hitPlayer, 1462.2607421875, -1012.4664306641, 26.84375 ) end end addEventHandler( "onMarkerHit", Marcklde5el, Sortie )
×
×
  • Create New...