-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
You can't replace PED models (.DFF), only the textures (.TXD). Use: https://wiki.multitheftauto.com/wiki/EngineImportTXD https://wiki.multitheftauto.com/wiki/EngineLoadTXD
-
You'll have to wait a long time, firstly there'll be 1.1.1, 1.1.2 and so on.
-
just use destroyElement in the txd texture.
-
teamModerators = createTeam ( "Moderators", 0, 255, 0 ) teamSubAdmins = createTeam ( "Sub Admins", 0, 255, 0 ) teamAdmins = createTeam ( "Admins", 0, 255, 0 ) teamOwners = createTeam ( "Owners", 0, 255, 0 ) teamDevelopers = createTeam ( "Developers", 0, 255, 0 ) function addToTeam(player) if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "PDevelopers" ) ) then setPlayerTeam ( player, teamDevelopers ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "POwners" ) ) then setPlayerTeam ( player,teamOwners ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "PAdmins" ) ) then setPlayerTeam ( player,teamAdmins ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "PSubAdmins" ) ) then setPlayerTeam ( player,teamSubAdmins ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "PModerators" ) ) then setPlayerTeam ( player,teamModerators ) end end function addToTeamTimer() setTimer(addToTeam,3000,1,source) end addEventHandler("onPlayerLogin",getRootElement(),addToTeamTimer) Should work, I don't know why you used that much functions and timers.
-
Nice, the latest video seems to have no lag spikes, at least not like the first . Good work, I'll check it out soon.
-
Try downloading MTA again, unistall everything first.
-
I don't know, if you downloaded the MTA and you didn't touch anything, it should work.
-
addEvent('onPlayerPickUpRacePickup') addEventHandler('onPlayerPickUpRacePickup', g_Root, function(number, sort, model) if sort == "vehiclechange" then if model == 425 then outputChatBox ( getPlayerName(source).. " has got the Hunter", getRootElement(), 255, 255, 255, true ) if g_SToptimesManager then g_SToptimesManager:playerFinished( source, exports.race:getTimePassed()) end end end end )
-
engineLoadTXD is only client side, I'm sure you are using it as server side. Check the meta.xml if it says type="server".
-
Yes, if you remove it, the server will create a new file.
-
I don't know, maybe it's a map problem? in your map file I mean. P.S: You are loading client.lua twice.
-
dummy= guiCreateWindow(179,102,448,361,"J Dummy",false) bindKey("b","down",function () guiSetVisible(dummy,not guiGetVisible(dummy)) end)
-
I think it's stored in SQL so, in registry.db.
-
It's the same way but you need to put the URL and not the file path. ex: playSound("google.com")
-
BinSlayer, I used that function many times in 1.0 and in 1.1 I'd too if I remember well, has no problems.
-
What is this exactly? you "shoot" knives or something like that?
-
What do you mean by "TXD toggle"? do you mean replacing textures?
-
Neither here, I don't know, maybe someone set your nick? a brother/sister?
-
The script has no errors, are you sure it's the full script?
-
Why does it need server side? I don't see any trigger in the script.
-
Ayuda para resolver un pequeño bug en mi script
Castillo replied to RottenFlesh's topic in Scripting
-- Este es solo una parte de el codigo, lo demas son mas puertas, colshapes y timers addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function () movingGates = {} LSPD_gate = createObject(980, 1545.7392578125, -1627.7275390625, 15.206203460693, 0, 0, 90) LSPD_col = createColSphere (1545.7392578125, -1627.7275390625, 15.206203460693, 10) FBI_gate = createObject(2938, 1269.6904296875, -1842.349609375, 15.187080383301, 0, 0, 90) FBI_col = createColSphere(1269.6904296875, -1842.349609375, 14.187080383301, 10) FBI_gate2 = createObject(2938, 1213.5595703125, -1842.537109375, 15.187080383301, 0, 0, 90) FBI_col2 = createColSphere(1213.5595703125, -1842.537109375, 14.187080383301, 10) --[[ ... ]] end) addEventHandler("onPlayerLogin", root, function () bindKey(source, "crouch", "down", moving, source) bindKey(source, "horn", "down", moving, source) end) function moving (player) local team = getPlayerTeam(player) if (isElementWithinColShape(player, LSPD_col) == true and not movingGates[LSPD_gate] and team == getTeamFromName("Los Santos PD")) then moveObject(LSPD_gate, 3000, 1545.7392578125, -1627.7275390625, 20.581121444702) movingGates[LSPD_gate] = true setTimer(moveObject, 7000, 1, LSPD_gate, 3000, 1545.7392578125, -1627.7275390625, 15.206203460693) setTimer(function () movingGates[LSPD_gate] = false end, 7000, 1) elseif (isElementWithinColShape(player, FBI_col) == true and not movingGates[FBI_gate] and team == getTeamFromName("FBI")) then movingGates[FBI_gate] = true moveObject(FBI_gate, 2000, 1269.6904296875, -1842.349609375, 19.887008666992) setTimer(moveObject, 7000, 1, FBI_gate, 2000, 1269.6904296875, -1842.349609375, 15.187080383301) setTimer(function () movingGates[FBI_gate] = false end, 7000, 1) elseif (isElementWithinColShape(player, FBI_col2) == true and not movingGates[FBI_gate2] and team == getTeamFromName("FBI")) then movingGates[FBI_gate2] = true moveObject(FBI_gate2, 2000, 1213.5595703125, -1842.537109375, 19.887008666992) setTimer(moveObject, 7000, 1, FBI_gate2, 2000, 1213.5595703125, -1842.537109375, 15.187080383301) setTimer(function () movingGates[FBI_gate2] = false end, 7000, 1) --[[ ... ]] Con eso deberia funcionar, pero el problema es que 7 segundos no tarda en cerrarse la puerta, que yo sepa.
