-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Can't you change the text position? the alignX and alignY are set to "center".
-
PoliBarraObj1 = createObject ( 968, 1544.5999755859, -1630.8000488281, 13.300000190735, 0, 90, 89) PoliBarra1 = createColTube ( 1541, -1630, 12.5, 25, 10) local policeSkins = {[265] = true, [266] = true, [267] = true} for i=280, 288 do policeSkins[i] = true end function BARRA1 ( player ) if ( getElementType ( player ) == "player" ) then local skin = getElementModel ( player ) if (policeSkins[skin]) then moveObject ( PoliBarraObj1, 3000, 11544.5999755859,-1630.8000488281, 13.300000190735, 0, 0, 89) else outputChatBox ( "Usted no es Policia!!, alejese YA!", player, 0,0,200 ) end elseif ( getElementType ( player ) == "vehicle" ) then local player = getVehicleController(player) local seat = getPedOccupiedVehicleSeat(player) if (seat == 0 )then local skin = getElementModel ( player ) if (policeSkins[skin]) then moveObject ( PoliBarraObj1, 3000, 1544.5999755859,-1630.8000488281, 13.300000190735, 0, 90, 89) end end end end addEventHandler( "onColShapeHit", PoliBarra1, BARRA1 ) function Barra1Close () moveObject ( PoliBarraObj1, 3000, 1544.5999755859,-1630.8000488281, 13.300000190735, 0, 90, 89) end addEventHandler( "onColShapeLeave", PoliBarra1, Barra1Close ) Tienes algo mal en la posicion al abrirse, porque no se abre, es como si se teleportase a otra parte.
-
Because that's saving in element data, when the player leaves, the time will be lost, you must use account data/sqlite/mysql/xml to save the data after quit.
-
Why don't you read the first post instead of asking such question? there's a youtube video which clearly says: "Creating a house".
-
Vehicle mod: https://community.multitheftauto.com/index.php?p= ... ls&id=3523
-
@Al3grab: First, that timer is not required, the server will still run one timer for each player, it would be the same to be just one timer for every single player at once. Second, your script is creating one "checkTimer" each time someone joins, but not storing it on a table, so it'll never work, because it's replacing the variable every time.
-
Con este recurso puedes darle mas "vida(health)" al ped. https://community.multitheftauto.com/index.php?p= ... ls&id=1604
-
Para crear bots puedes usar el recurso "slothbot" de Slothman. https://community.multitheftauto.com/index.php?p= ... ils&id=672
-
Skins mod: https://community.multitheftauto.com/index.php?p= ... ls&id=3516 https://community.multitheftauto.com/index.php?p= ... ls&id=3517
-
You can't remove a chatbox message.
-
You mean remove a chatbox message? if so, I don't think that's possible.
-
exports.scoreboard:addScoreboardColumn('Time') function updateTimePlayed() setTimer(updateTimePlayed,1000,1) for index, player in ipairs(getElementsByType("player")) do setElementData(player,"totalTime",0) local totalTime = getElementData(player,"totalTime") setElementData(player,"totalTime",totalTime+1) setElementData(player,"Time",math.floor(tonumber(totalTime)/60).." Mins") end end setTimer(updateTimePlayed,1000,1)
-
Did you add that resource to the group "Admin" in the acl.xml?
-
function drawText() dxDrawBorderedText("HUNTER ENCONTRADO!",226.0,637.0,625.0,671.0,tocolor (255,0,0,255),1.3,"bankgothic","center","center",false) end addEvent("onHunterReached",true) addEventHandler("onHunterReached",root, function () addEventHandler("onClientRender",root,drawText) setTimer(function () removeEventHandler("onClientRender",root,drawText) end, 5000, 1) end) function dxDrawBorderedText( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI ) dxDrawText ( text, x - 1, y - 1, w - 1, h - 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) -- black dxDrawText ( text, x + 1, y - 1, w + 1, h - 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x - 1, y + 1, w - 1, h + 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x + 1, y + 1, w + 1, h + 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x - 1, y, w - 1, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x + 1, y, w + 1, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y - 1, w, h - 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y + 1, w, h + 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI ) end
-
Oh, I forgot about the color argument, my bad .
-
Copy the client side part again.
-
If the debug doesn't say it, I think the best way is stoping every resource and starting one by one. There are many resources that doesn't use getClientIP. Such as scoreboard, scores, killmessages and many others.
-
Add the resource that causes these warnings in the acl.xml group "Admin".
-
-- client side: function drawText() dxDrawText("HUNTER ENCONTRADO!",226.0,637.0,625.0,671.0,tocolor (255,0,0,255),1.3,"bankgothic","left","top",false) end addEvent("onHunterReached",true) addEventHandler("onHunterReached",root, function () addEventHandler("onClientRender",root,drawText) setTimer(function () removeEventHandler("onClientRender",root,drawText) end, 5000, 1) end) -- server side: addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",getRootElement(), function(number, sort, model) if (sort == "vehiclechange" and model == 425) then triggerClientEvent("onHunterReached",getRootElement()) end end)
-
Bueh, pues podrias usar un array. array = {} array["Castillo"] = {{24, 500}}
-
Serginix, podrias usar element data en lugar de tablas tambien .
-
When you change a element dimension it'll be gone from the old dimension, that's obviously, at least for me.
-
Skin mods: https://community.multitheftauto.com/index.php?p= ... ls&id=3511 https://community.multitheftauto.com/index.php?p= ... ls&id=3512
