Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. That's because "lp" is a player element, use getPlayerName ( lp ).
  2. Castillo

    its posible

    You're welcome.
  3. Castillo

    its posible

    It's "object" lower case, not "Object" at getElementsByType.
  4. Castillo

    its posible

    setElementCollidableWith is a client side function.
  5. dxDrawText requires onClientRender in order to be drawn constantly.
  6. Castillo

    its posible

    You can disable the collision with the function: setElementCollidableWith
  7. Castillo

    help me

    No, that doesn't make any sense. https://wiki.multitheftauto.com/wiki/createVehicle There are few examples, read them.
  8. Castillo

    help me

    addCommandHandler -- Add a command getElementPosition -- Get the position of an element ( player in this case ) createVehicle -- Create a vehicle
  9. Why it doesn't work? what is the error?
  10. Castillo

    Createblip

    You can use createBlip or createBlipAttachedTo. local blipID = 45 -- The blip ID, 45 = t-shirt. function createSkinShops ( ) for index, shop in pairs ( shops ) do local x, y, z, int, dim = shop.x, shop.y, shop.z, shop.int, shop.dim marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) setElementInterior ( marker, int ) setElementDimension ( marker, dim ) createBlipAttachedTo ( marker, blipID ) addEventHandler ( "onMarkerHit", marker, enteredShop ) end end addEventHandler ( "onResourceStart", resourceRoot, createSkinShops )
  11. We don't give support with leaked scripts. Topic locked.
  12. You can create a colshape, and when hit it, you can either create a GUI label or draw a DX text. createColRectangle guiCreateLabel dxDrawText
  13. Post the whole code to select mission.
  14. fileOpen returns a file userdata, which you must use for fileWrite and fileClose. local playerName = getPlayerName( source ) local levelAdmin = getElementData ( source, "Admin" ) local stringName = string.format ( "Users/%s.ini", playerName ) local stringAdmin = string.format ( "Admin: %i\n", levelAdmin ) local file = fileOpen ( stringName ) if ( file ) then fileWrite ( file, stringAdmin ) fileClose ( file ) end
  15. I don't get what is the problem.
  16. Unpack the table with "unpack". local x, y, z = unpack ( gPedLocations [ math.random ( #gPedLocations ) ] )
  17. We don't give support with leaked scripts. Topic locked.
  18. I don't understand the problem. Also, you should use a table to store if the player took the hunter or not, using element data is just a waste.
  19. Move the event handlers inside the "onClientResourceStart" triggered function.
  20. You haven't got the permission to sell that script. Topic locked.
  21. Utiliza "VMWare", es un programa para crear maquinas virtuales y funciona perfectamente.
  22. Use the engine functions. engineLoadTXD engineImportTXD engineLoadDFF engineReplaceModel
  23. I don't see any difference with the default theme.
  24. Dudo que tuviese algo que ver con eso, debe haber sido pura coincidencia.
×
×
  • Create New...