-
Posts
1,518 -
Joined
-
Last visited
-
Days Won
8
Everything posted by Simple0x47
-
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 )
-
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.
-
What's up with the under development MTA update for VC?
-
[ayuda]Quiero saber si ahí alguna solución a esto!!!
Simple0x47 replied to KaR0n!'s topic in Scripting
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. -
-- 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
-
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.
-
Well, you will change of mind.
-
How many players could such VPS handle with DayZ Gamemode
Simple0x47 replied to ARares's topic in Servers
About 20. -
How many players could such VPS handle with DayZ Gamemode
Simple0x47 replied to ARares's topic in Servers
Well it's the DayZ Version 0.6? -
1st January 2018, 1st SUI release.
-
[BÚSQUEDA] Miembros para Equipo Administrativo [NO PAGADO]
Simple0x47 replied to Simple0x47's topic in Offtopic
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. -
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.
-
[BÚSQUEDA] Miembros para Equipo Administrativo [NO PAGADO]
Simple0x47 replied to Simple0x47's topic in Offtopic
Si ya es tiempo de que ponga en pie uno -
[BÚSQUEDA] Miembros para Equipo Administrativo [NO PAGADO]
Simple0x47 replied to Simple0x47's topic in Offtopic
Que va, cada día me supero más -
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
-
cumpar servicii mta cumpar servicii scripting multi theft auto: san andreas
Simple0x47 replied to Addicted:-'s topic in General
Incearca sa adaugi detalile explicite asa te asigur ca gasesti mai multi scripteri. -
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!
-
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] ).
-
Mergi la serveru în care joci.
-
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.
- 1 reply
-
- mta blue
- source code
-
(and 4 more)
Tagged with:
-
-- 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.
-
RenderTargets will be used, alternative without RenderTargets will be shown in version 0.2.