Jump to content

MisterQuestions

Members
  • Posts

    460
  • Joined

  • Last visited

Everything posted by MisterQuestions

  1. But im triying it please don't kill my hope at least can you say me how to with this rectangle? dxDrawRectangle(500, 431, 83, 36, tocolor(37, 27, 35, 255), false)
  2. I have made this simple script... Tell me if its ok please addEventHandler("onClientRender", root, function() dxDrawText("ES", 500, 431, 583, 467, tocolor(255, 255, 255, 255), 1.50, "default", "center", "center", false, false, true, false, false) dxDrawText("EN", 593, 431, 676, 467, tocolor(255, 255, 255, 255), 1.50, "default", "center", "center", false, false, true, false, false) end ) sx, sy = getCursorPosition() language = es addEventHandler("onClientClick", getRootElement(), function if sx == 500 and sy == 431 then language = es outputChatBox("El lenguaje del anuncio ahora es: ES (Español)", getRootElement(), 255, 255, 255, true) elseif sx == 593 and sy == 431 then language = en outputChatBox("The language of the announce is now: EN (English) ", getRootElement(), 255, 255, 255, true) end end end
  3. function createBaseMap() --Edificios edificio1 = createObject ( 4004, 2302.7998046875, -1406.7998046875, 686.59997558594, 0, 0, 0 ) edificio2 = createObject ( 4004, 2269.7001953125, -1322.599609375, 687.59997558594, 0, 0, 90 ) --Gas station main1 = createObject ( 11387, 2299.900390625, -1370.5, 678.90002441406, 0, 0, 0 ) --Barreras barrera1 = createObject ( 8651, 2280.5, -1387.900390625, 675.29998779297, 0, 90, 0 ) barrera2 = createObject ( 8651, 2281.1000976563, -1386.0999755859, 676.79998779297, 0, 0, 0.5 ) barrera3 = createObject ( 8651, 2281.1000976563, -1386.0999755859, 678.5, 0, 0, 0.5 ) barrera4 = createObject ( 8651, 2280.7998046875, -1370.7001953125, 678.5, 0, 0, 91.99951171875 ) barrera5 = createObject ( 8651, 2280.7998046875, -1370.7001953125, 676.5, 0, 0, 91.99951171875 ) barrera6 = createObject ( 8651, 2299.7001953125, -1338.7998046875, 678.5, 0, 0, 0 ) barrera7 = createObject ( 8651, 2299.7001953125, -1338.7998046875, 676.5, 0, 0, 0 ) barrera8 = createObject ( 8651, 2309.2001953125, -1338.2001953125, 678.5, 0, 0, 91.99951171875 ) barrera9 = createObject ( 8651, 2309.2001953125, -1338.2001953125, 676.5, 0, 0, 91.99951171875 ) --Markers Marker1 = createMarker ( 2279.9458007813, -1372.3173828125, 676.54766845703, "corona", 1.5, 255, 158, 0, 255, getRootElement() ) --Carros hunter = createVehicle ( 425, 1292, -793, 98, 0, 0, 155) --NPC's npc1 = createPed(25, 52312, -1360.7, 676.70001) npc2 = createPed(25, 52312, -1360.7, 676.70001) --DM Map dmCar1 = createVehicle(411, 2307.3000488281, -1408.3000488281, 688.29998779297, 0, 0, 325) dmPed1 = createPed(0, 2305.3999023438, -1407.3000488281, 688.5) createObject(688, 2315.1000976563, -1407.3000488281, 687.5, 0, 0, 0) createObject(688, 2300.8999023438, -1408.0999755859, 687.5, 0, 0, 0) --DD Map ddCar1 = createVehicle(426, 2275.1000976563, -1417, 692.20001220703, 0, 0, 90) ddCar2 = createVehicle(542, 2266.6000976563, -1423.0999755859, 692.20001220703, 0, 0, 0) ddPed1 = createPed(0, 2273.8000488281, -1415.5, 692.29998779297) ddPed2 = createPed(0, 2267.3999023438, -1422.1999511719, 692.29998779297) createObject(8838, 2265.8000488281, -1430.9000244141, 689.79998779297, 0, 0, 90) createObject(8838, 2294, -1430.6999511719, 689.79998779297, 0, 0, 90) createObject(8838, 2279.8999023438, -1416.4000244141, 689.79998779297, 0, 0, 0) createObject(8838, 2280.1999511719, -1428.9000244141, 689.79998779297, 0, 0, 0) createObject(8838, 2279.6999511719, -1444.9000244141, 689.79998779297, 0, 0, 0) createObject(896, 2303.6999511719, -1420.3000488281, 690.20001220703, 0, 0, 0) createObject(896, 2303.8999023438, -1434, 690.20001220703, 0, 0, 0) createObject(896, 2304.1999511719, -1451.1999511719, 690.20001220703, 0, 0, 0) createObject(896, 2293.6000976563, -1457.1999511719, 690.20001220703, 0, 0, 0) createObject(896, 2278.3999023438, -1455.1999511719, 690.20001220703, 0, 0, 0) createObject(896, 2266.6999511719, -1454.1999511719, 690.20001220703, 0, 0, 0) createObject(896, 2254.8000488281, -1450.5999755859, 690.20001220703, 0, 0, 0) createObject(896, 2255, -1438.9000244141, 690.20001220703, 0, 0, 0) createObject(896, 2255.5, -1425.9000244141, 690.20001220703, 0, 0, 0) createObject(896, 2254.8000488281, -1416.4000244141, 690.20001220703, 0, 0, 0) createObject(896, 2280.6999511719, -1435.4000244141, 690.20001220703, 0, 0, 40) --Hunter Map htCar1 = createVehicle(425, 2236.8999023438, -1406.8000488281, 693.59997558594, 0, 0, 245) createPed(0, 2240.1000976563, -1406.0999755859, 692.79998779297, 90) createObject(4726, 2233.3999023438, -1409.0999755859, 690.5, 0, 0, 0) createObject(8357, 2228.5, -1416.9000244141, 711.29998779297, 90, 0, 180) createObject(8357, 2223.5, -1396, 711.29998779297, 90, 0, 0) createObject(8357, 2221.6000976563, -1413.9000244141, 691.79998779297, 0, 90, 0) createObject(672, 2241.3999023438, -1413.8000488281, 691.79998779297, 0, 0, 0) createObject(672, 2241.1999511719, -1398.4000244141, 691.79998779297, 0, 0, 0) createObject(672, 2226, -1413.3000488281, 691.79998779297, 0, 0, 0 ) createObject(672, 2224.6999511719, -1398.5999755859, 691.79998779297, 0, 0, 0) end addEventHandler( "onResourceStart", getRootElement(), createBaseMap ) This creates 2 of everything why?
  4. Mmm...Not like that i mean to create by my own, at now i know i should use the rectangles with onClientClick and getCursorPosition, but how to use those functions?
  5. Hey, how can i create buttons with dxDraw and how to when a players click on it, apply a function?
  6. Hi i have a error im creating a script it creates objects cars and peds but have a error it creates 2 cars and 2 peds why? How to fix it? I use server-side...
  7. Hey whats wrong on this code i have a error? server.lua:153: Bad argument @ 'bindKey' [Expected player at argument 1, got string 'arrow_r'] Server-Side bindKey("arrow_r", "down", function () if lookDMSelection( source ) then lookDDSelection( source ) elseif lookDDSelection( source ) then lookDMSelection( source ) end end )
  8. lo puse con "onPlayerJoin" pero cuando vuelvo a entrar se crea doble... & pues ademas no solo entraria yo... entonces se estarian creando varios!
  9. Hola tengo un problema, quiero que cuando el resource se inicie se creen estos objectos pero no funciona... por que? Server-Side: function LoginExtras(source) --Carros --Hunter createVehicle ( 425, 1291.14233, -793.24280, 97.50362 ) --Infernus 1 createVehicle ( 411, 1290.42725, -829.14185, 82.65894 ) --Old garage... createObject ( 11387, 2299.8999, -1370.5, 678.90002, 0, 0, 0 ) ---Barreras... createObject ( 8651, 2299.7, -1338.8, 676.5, 0, 0, 0 ) createObject ( 8651, 2299.7, -1338.8, 678.5, 0, 0, 0 ) createObject ( 8651, 2299.7, -1338.2, 676.79999, 0, 0, 92 ) createObject ( 8651, 2299.7, -1338.8, 678.5, 0, 0, 0 ) createObject ( 8651, 2281, -1385.4, 678.5, 0, 0, 0 ) createObject ( 8651, 2281, -1385.4, 676.5, 0, 0, 0) createObject ( 8651, 2280.8, -1370.7, 676.5, 0, 0, 92 ) createObject ( 8651, 2299.7, -1338.8, 678.5, 0, 0, 92 ) ----Edificios.... createObject ( 4004, 2269.7, -1322.6, 687.59998, 0, 0, 90 ) createObject ( 4004, 2302.8, -1406.8, 686.59998, 0, 0, 0 ) ----Carro & ped... createVehicle ( 411, 2309.5, -1362.8, 676.29999 ) createPed(25, 52312, -1360.7, 676.70001) end addEventHandler("OnResourceStart", getRootElement(), LoginExtras)
  10. Osea para añadirle la animacion se le pone una variable al interpolatebetween? & se le agrega como argumento a lo que se le queire añadir la animacion?
  11. Mmm error? why? this is the nametags draw text... dxDrawText (getPlayerTeam(player)" \n"..getPlayerName(player), sx, sy - offset, sx, sy - offset, tocolor(r,g,b,textalpha), textscale*NAMETAG_TEXTSIZE, raceInterface.font, "center", "bottom", false, false, false, true )
  12. oh! amazing.... now i need to search a place to set camera (when i say place i mean to a garage)
  13. When a player join to server the camera is seted to a "X" point, how to create cars on that point, just for decoration...
  14. Link? More screens? Description? Something?
  15. Mmm i will try..but now how to create a vehicle in x position just for deco on a login screen and when player login destroy them.
  16. Hi i got a error this supose to set the camera to a garage when player uses command, but just have errors whats wrong? Server-Side function garage1() fadeCamera( source, true, 5) setCameraMatrix(source, 1873, -2101, 14, 1873, -2101, 14) --Un extra... outputChatBox ( "#FF9E00Welcome to the garage!", getRootElement(), 255, 255, 255, true ) end addCommandHandler("g1", garage1) Logs [2014-09-19 20:52:28] WARNING: gm\server.lua:14: Bad argument @ 'fadeCamera' [Expected element at argument 1, got nil] [2014-09-19 20:52:28] WARNING: gm\server.lua:15: Bad argument @ 'setCameraMatrix' [Expected element at argument 1, got nil]
  17. I wanna do, when a map starts don't set a locked time (Always is 12:00) and use the map time. How?
  18. Hey...i have a question, how to do when a map loads, load the time and weather? or just the basic i need to script the function? some one help me
  19. In my code, just says '#404 Not found' why?
×
×
  • Create New...