-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
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
-
You can replace a SKIN model with a shark (if you got the model of course).
-
That's not a function, that's a object created by createObject attached to the player.
-
My script works perfectly, you must add the resource which has the script to restart them to the ACL.
-
Actually myonlake, setElementInterior has 3 optional arguments, posX, posY, posZ.
-
Use setElementInterior to set a element interior.
-
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)
-
Take a look at the resource settings from the Admin Panel, you can disable options.
-
You're welcome .
-
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)
-
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.
-
Are you completely sure that the file is called "resources.xml" and not "resource.xml"?
-
As far as I know, slothbots need's a bug fix in MTA 1.1.1.
-
Do you have the file "resources.xml"?
-
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)
-
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 )
-
The resource "votemanager" has a vote system.
-
That's wrong Yakuza... he's already refreshing every render.
-
race_starter_pack doesn't use the GTA money system... it uses ELEMENT DATA.
-
Are you using any kind of custom money system? like race_starter_pack one.
-
That's just a BIG USELESS reply. @zombienation: Take a look here: https://wiki.multitheftauto.com/wiki/Res ... ustomblips
-
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 )
