Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. The only way to do this is editing the script itself.
  2. Lo que podes hacer es crear un colshape temporario y buscar los vehiculos dentro al usar el click derecho. bindKey createColTube getDistanceBetweenPoints3D
  3. -- server side: function elementClicked ( theButton, theState, thePlayer ) if ( theButton == "right" ) and ( theState == "down" ) then if ( getElementType ( source ) == "vehicle" ) then outputChatBox ( "El vehiculo es un: ".. getVehicleName ( source ), thePlayer ) end end end addEventHandler ( "onElementClicked", getRootElement(), elementClicked )
  4. Por secundario queres decir con el boton derecho? ese es el mismo evento, tiene un argumento.
  5. We don't help with stolen scripts.
  6. That's what it seems to be happening.
  7. That means spawnPoints table is empty, that's why it doesn't output "FOR".
  8. Instead of: outputChatBox("BEFOREFOR") Add: outputChatBox ( #spawnPoints )
  9. I said at which function argument, anyway, try this and see what the script outputs: outputChatBox ( tostring ( element.model ) ) outputChatBox ( tostring ( element.posX ) ) outputChatBox ( tostring ( element.posY ) ) outputChatBox ( tostring ( element.posZ ) ) outputChatBox ( tostring ( element.rotX ) ) outputChatBox ( tostring ( element.rotY ) ) outputChatBox ( tostring ( element.rotZ ) ) spawn = createVehicle ( element.model, element.posX, element.posY, element.posZ, element.rotX, element.rotY, element.rotZ )
  10. Wnd = guiCreateWindow ( 0.2, 0.2, 0.25, 0.5, "Free Vehicles", true ) guiSetAlpha( Wnd, 1 ) button = guiCreateButton ( 0.5, 0.8, 0.45, 0.15, "Close", true, Wnd ) button1 = guiCreateButton ( 0.01, 0.8, 0.45, 0.15, "Accept", true, Wnd ) label = guiCreateLabel ( 0.1, 0.1, 0.9, 0.1, "Double Click Vehicle to take it.", true, Wnd ) showCursor(false) guiSetVisible( Wnd, false ) guiWindowSetSizable( Wnd, false ) guiWindowSetMovable( Wnd, false ) vehicles = { {"BMX", 481}, {"Bike", 509}, {"Mountain Bike", 510}, {":O", 462}, } grid = guiCreateGridList(0.01, 0.2, 0.99, 0.5, true, Wnd) guiGridListAddColumn(grid, "Vehicles", 0.85) for i,veh in ipairs(vehicles) do row = guiGridListAddRow(grid) -- guiGridListSetItemText(grid, row, 1, tostring(veh[1]), false, false) guiGridListSetItemData(grid, row, 1, tostring(veh[2])) end function use() local row, col = guiGridListGetSelectedItem(grid) if (row and col and row ~= -1 and col ~= -1) then local model = tonumber(guiGridListGetItemData(grid, row, 1)) if model ~= "" then triggerServerEvent("CreVehice", localPlayer, model) end end end addEventHandler("onClientGUIClick", button1, use, false) function close() if (source == button) then guiSetVisible(Wnd,false) showCursor(false) end end addEventHandler("onClientGUIClick", button, close) function showGUI2() guiSetVisible(Wnd,true) showCursor(true) end addEvent("showGUI2",true) addEventHandler("showGUI2", getRootElement(), showGUI2)
  11. Do you have any error regarding the vehicle creation?
  12. Castillo

    [WIP]MTAM

    Thanks. So you all know, it doesn't let you chat between servers.
  13. Castillo

    dxDraw3dText

    Podrias editar esta: https://wiki.multitheftauto.com/wiki/DxDrawImage3D
  14. Si queres que al matar un jugador te de dinero, usa esto: addEventHandler ( "onPlayerWasted", root, function ( _, killer ) if ( killer and killer ~= source and getElementType ( killer ) == "player" ) then givePlayerMoney ( killer, 500 ) end end )
  15. Castillo

    [WIP]MTAM

    Hello there. I would like to present you the resource I'm working on, which is MTAM ( Multi Theft Auto Messenger ), the idea of this resource is to create something like MSN but inside MTA, as a resource, of course, it'll allow players to register usernames where they'll be able to manage their contacts, set an avatar, a shared message, chat with contacts, multiple contact conversations, and much more, the resource still has a lot of work left. Some screenshots: Note: You can't chat between servers.
  16. Que tiene que ver el exp_system con ganar dinero?
  17. Go to the resource and open folder "maps", then edit the file "shops.map".
  18. addEventHandler ( "onPlayerChat", root, function ( msg, msgType ) if ( msgType == 0 ) then local r, g, b = getPlayerNametagColor ( source ) outputChatBox ( getPlayerName ( source ) ..": #0000FF".. msg, root, r, g, b, true ) cancelEvent ( ) end end )
  19. De todo el mensaje? o solo lo que dicen?
  20. Use onPlayerWasted + spawnPlayer.
  21. thePlayer = who used the command. _ = the command name, I named the argument like this because I was not using, I could have named it anything else anyway.
×
×
  • Create New...