Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    VIP Problem

    "the things happen" what does that mean? you are not explaining us anything. Also, this line: addEventHandler("onClientGUIDoubleClick", root, test) Should be: addEventHandler("onClientGUIDoubleClick", root, test, false)
  2. Of which game mode are we talking about?
  3. That's obviously a server side script, and dxDrawText is a client side only function.
  4. Castillo

    VIP Problem

    Next two what? that should work for all the items of the grid list.
  5. No, esta mal en varias cosas. 1: "player" no esta definido. 2: getTeamName se usa con un elemento de team. 3: getLocalPlayer es solo client side y tu script es server side.
  6. If it worked for you, it's because you are using a different script, since you aren't setting the grid list item data later used. for u,i in ipairs (skins) do local row = guiGridListAddRow (GUIEditor_Grid[1]) guiGridListSetItemText (GUIEditor_Grid[1], row, 1, tostring(i[1]), false, false) guiGridListSetItemText (GUIEditor_Grid[1], row, 1, tostring(i[2])) end Should be: for _, i in ipairs (skins) do local row = guiGridListAddRow (GUIEditor_Grid[1]) guiGridListSetItemText (GUIEditor_Grid[1], row, 1, tostring(i[1]), false, false) guiGridListSetItemData (GUIEditor_Grid[1], row, 1, tostring(i[2])) end
  7. Thats the point, is an object getting attached to a forklift if you try to lift it? No as far as I know, the only way would be attaching it yourself.
  8. Castillo

    Mechanic

    You are trying to get the occupant of a player, not from a vehicle.
  9. You started the resource? you can add it to the mtaserver.conf to auto start, like freeroam.
  10. No, que yo sepa debes agregarselo tu mismo.
  11. Le debe faltar algun recurso requerido, fijate en el meta.xml para ver cuales necesita.
  12. Si se puede, usa: getCameraMatrix getDistanceBetweenPoints3D getScreenFromWorldPosition dxDrawImage
  13. Te falta un 'end' y ese 'if' esta mal hecho. function playerJustGotDied(ammo, attacker, weapon, bodypart) local level = tonumber ( getElementData ( source, "level" ) ) or 0 if ( level > 10 ) then createMoney ( source ) end end addEventHandler("onPickupUse", getRootElement(), moneyPickupHit); addEventHandler("onPlayerWasted", getRootElement(), playerJustGotDied);
  14. Try adding debug outputs until you find what's wrong.
  15. No, tiene que ir dentro de la funcion y usa "source" no "thePlayer".
  16. I guess that he could also use: https://wiki.multitheftauto.com/wiki/GetElementSpeed
  17. Try this: addEventHandler ( "onMarkerHit", jobMarker_trucker_newTrailer, function ( hitPlayer ) if ( getElementType ( hitPlayer ) == "player" ) then local v = getPedOccupiedVehicle ( hitPlayer ) if ( v ) then local model = getElementModel ( v ) if ( model == 515 ) then if ( job ) then triggerClientEvent ( hitPlayer, "errorMsg", root, "You still got a delivery to do!" ) else triggerClientEvent ( hitPlayer, "errorMsg", root, "Great work, keep it up!" ) triggerClientEvent ( hitPlayer, "startJob_trucker", root ) end end end end end )
  18. Forum bug. I tested the script and it loaded my team.
  19. The best way to know is to test it.
  20. Yes, that's what I added, since "onClientMarkerHit" is triggered by remote players as well. You're welcome.
  21. Do you get any error on the debugscript? NOTE: The errors won't appear on the server console, since it's a client side script.
  22. Castillo

    info sound

    That doesn't make much sense, you are playing the sound every render, also creating a 100 ms timer every render.
  23. Create a client side script, then when they enter on a vehicle, disable it. Event: onClientVehicleEnter
  24. You can change that on the scripts at: "race/modes/", names: "base.lua", "destructionderby.lua".
×
×
  • Create New...