Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. You can search here: https://community.multitheftauto.com/
  2. A que te referis con "aparecen en blanco las opciones de respawn"?
  3. local sx, sy = guiGetScreenSize ( ) local lastUpdate = 0 local angle = 0 function renderDisplay ( ) if ( getTickCount ( ) - lastUpdate >= 1000 ) then angle = ( angle + 1 ) if ( angle > 359 ) then angle = 0 end end dxDrawImage ( sx / 2 - 50, 0, 100, 240, "myimage.png", angle, 0, -120 ) end addEventHandler ( "onClientRender", getRootElement(), renderDisplay )
  4. Castillo

    dff to bmp

    DFF files contain the model, not the texture which are in the TXD files.
  5. Hiding after login is one thing, and hiding when the resource starts from the server side is another.
  6. addEventHandler ( "onVehicleStartEnter", root, function ( enteringPlayer ) local skin = getElementModel ( enteringPlayer ) local model = getElementModel ( source ) if ( model == 520 or model == 425 and skin ~= 287 and skin ~= 217 ) then cancelEvent ( ) outputChatBox ( "You must be in Army to enter the vehicle!", enteringPlayer, 255, 0, 0, true ) end end )
  7. In the client side: triggerServerEvent( "doToggleEngine", root) Change "root" to "localPlayer" or getPedOccupiedVehicle ( localPlayer ). In the server side: function doToggleEngine ( source ) Remove "source" from there.
  8. Why do you even trigger a event to hide the GUI server side? you can just hide it client side.
  9. Yes, I think it only works with strings.
  10. That sounds like you or your friend stole the client side script and wants our help to rebuild the server side.
  11. Is not about that function only, you can do it with other functions, example: for _, player in ipairs ( getElementsByType "player" ) do -- Code here end
  12. dxDrawText( 'GOD', px, py, px, py, tocolor( 255, 255, 255, 255 ), 1, "sans", "center", "center", false, false, false , true );
  13. When are you executing "createTrailer"?
  14. That's because the client side script loads after the server side.
  15. -- server side: addEvent ( "giveWeapon", true ) addEventHandler ( "giveWeapon", root, function ( weapon, ammo, current ) if ( type ( weapon ) == "number" and type ( ammo ) == "number" ) then giveWeapon ( client, weapon, ammo, current ) end end ) And then you just trigger an event from the client side, like this: triggerServerEvent ( "giveWeapon", localPlayer, 31, 5000, true ) -- Gives a M4 with 5000 bullets and sets it as current weapon.
  16. You are constantly creating a GUI image every render, that's a really bad idea and it won't even work.
  17. From where exactly is it ripped from?
  18. How exactly is it wrong? because he forgot about the parentheses before " and after "? if so, then you are wrong, because that'll work anyway.
  19. That doesn't make any sense, why do you even use "WHERE" in a insert query? serial = getPlayerSerial(source) x, y, z = getElementPosition(newveh) a, b, c = getElementPosition(source) dbExec ( server, "INSERT INTO accounts (serial, x, y, z, cx, cy, cz) VALUES (?, ?, ?, ?, ?, ?, ?)", serial, tostring (a), tostring (b), tostring (c), tostring (x), tostring (y), tostring (z) )
×
×
  • Create New...