Jump to content

Simple0x47

Members
  • Posts

    1,518
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Simple0x47

  1. Try this and make sure the client script is defined into the meta.xml as a client side script. function starts() outputChatBox("Client started.") setPlayerHudComponentVisible("all", false) showCursor(true) showChat(false) addEventHandler("onClientRender", getResourceRootElement(), drawPanel) end addEventHandler("onClientResourceStart", getResourceRootElement( getThisResource() ), starts )
  2. Try this: -- VARIABLES -- VEHICLE IDS local vehicle_ids = { 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611 } -- FUNCTIONS -- RESOURCE -- START local function start() for i = 1, #vehicle_ids do local vehicle_id = vehicle_ids[ i ] setModelHandling( vehicle_id, "mass", 999999.0 ) end end -- EVENT HANDLERS -- RESOURCE -- START addEventHandler( "onResourceStart", getResourceRootElement( getThisResource() ), start ) The thing is that you must use setModelHandling and not setVehicleHandling because the function you use takes a vehicle element as first parameter meanwhile setModelHandling takes as first parameter a vehicle model id.
  3. What's up with the under development MTA update for VC?
  4. Si tienes interes en hacer el script deberías usar: GetCameraMatrix IsLineOfSightClear SetCameraMatrix Eso te servira para hacer un sistema básico que no permita a la camara irse más alla de los objetos, pero dara una pinta horrible por lo tanto deberías combinar estas funciones con el movimiento del ratón y demás. En resumen, un lío.
  5. -- ASSET OBJECTS STRUCTURE: { model=7047, model_file="3D8Ball", txd_file="3d8ball", coll_file="3D8Ball", lod=60 }, for i = 1, #assets do local asset = assets[ i ] if ( asset ) then local COL = EngineCOL( streamer_config[ 'map_data' ] .. "coll/" .. asset.coll_file .. ".col" ) local TXD if not ( cache[ asset.txd_file ] ) then TXD = EngineTXD( streamer_config[ 'map_data' ] .. "textures/" .. asset.txd_file .. ".txd" ) cache[ asset.txd_file ] = TXD else TXD = cache[ asset.txd_file ] end local DFF = EngineDFF( streamer_config[ 'map_data' ] .. "models/" .. asset.model_file .. ".dff" ) COL:replace( tonumber( asset.model ) ) if ( TXD ) then TXD:import( tonumber( asset.model ), true ) end DFF:replace( tonumber( asset.model ) ) Engine.setModelLODDistance( asset.model, asset.lod ) end end The code is being executed at the start of the resource, so it's into a function that's handles the event "onClientResourceStart", and about the DFF's. They're all DFF's from the original GTA III converted to SA by using convdff, here's a DFF that I'm using: http://www5.zippyshare.com/v/C6tkh6AA/file.html
  6. Hello. I'm writing this post because I'm facing problems with the function engineReplaceModel . The thing is that I'm using DFF files that are loading correctly because the return value of engineLoadDFF is a DFF element but when I use it in the function nominated before, the function throws out a warning: "Bad usage of @ 'replace' [Model ID replace failed]". I'd really like to know the reason of this failed execution. Thanks.
  7. Bueno debido a la falta de interés parece que tendre que retrasar la búsqueda hasta el trailer del servidor. Si se pudiera cerrar el topic lo agradecería. Muchas gracias.
  8. Y que tal si puedes pasarte tu por la sección española y publicar allí tu pedido que nadie te satisfacera si no aportas dinero a cambio.
  9. Muy buenas gente. Actualmente estoy buscando jugadores de roleplay interesados en participar en el equipo administrativo de un proyecto que se encuentra bajo desarrollo. Para más información pueden emplear las siguientes vías para contactarme: Skype: killer.68x Discord: Simple01#2215 Foro MTA: @Simple01
  10. Okay, what's the problem with it?
  11. Incearca sa adaugi detalile explicite asa te asigur ca gasesti mai multi scripteri.
  12. Many people said that the .rar file is damaged and it's good that they've not seen the code! Because now the code is getting even better!
  13. A gamemode specially made for you is possible if you are willing to pay for it. Contact me on PM, Skype ( killer.68x ) or Email ( [email protected] ).
  14. Well, what was the problem about doing that patch? I mean was there a specific error, or he didn't try at all to develop that patch?
  15. Mergi la serveru în care joci.
  16. The thing is that MTA created their own functions by following RenderWare's logic. In order to intercept the original functions you should start debugging GTA SA in order to know what does each pointer do.
  17. -- VARIABLES -- TEAM VEHICLES local team_vehicles = {} -- FUNCTIONS -- SET TEAM VEHICLE local function set_team_vehicle( thePlayer, commandName, theTeam ) if ( thePlayer ) then local vehicle = getPedOccupiedVehicle( thePlayer ) local team = getTeamFromName( theTeam ) if ( ( vehicle ) and ( team ) ) then team_vehicles[ vehicle ] = team outputChatBox( "Vehículo " .. getElementModel( vehicle ) .. " seteado para el equipo " .. getTeamName( team ), root, 0, 255, 0 ) end end end -- ENTER VEHICLE local function handle_enter( thePlayer, theSeat ) if ( ( thePlayer ) and ( theSeat ) and ( team_vehicles[ source ] ) ) then local playerTeam = getPlayerTeam( thePlayer ) local vehicleTeam = team_vehicles[ source ] if ( playerTeam ~= vehicleTeam ) then outputChatBox( "No puedes subirte a un vehículo de otro equipo. ( " .. getTeamName( vehicleTeam ) .. " )", thePlayer, 255, 0, 0 ) cancelEvent() end end end -- COMMAND HANDLERS -- SET TEAM VEHICLE addCommandHandler( "setteam", set_team_vehicle ) -- EVENT HANDLERS -- ENTER VEHICLE addEventHandler( "onVehicleStartEnter", root, handle_vehicle_enter ) Debería servirte para hacerte el sistema según tus necesidades.
  18. RenderTargets will be used, alternative without RenderTargets will be shown in version 0.2.
×
×
  • Create New...