Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. function weedhit ( element, matchingDimension ) if ( isElement ( element ) and matchingDimension and getElementType ( element ) == "player" ) then if isPedInVehicle ( element ) then local vehicle = getPedOccupiedVehicle ( element ) local vehicleID = getElementModel ( vehicle ) if ( vehicleID == 532 ) then harvestWeed ( ) else outputChatBox ( "You can't harvest with this vehicle!!", element ) end else outputChatBox ( "/pickbud to pick the weed!", element ) end else outputChatBox("Error!! Contact an Admin, F2", element ) end end addEventHandler ( "onColShapeHit", getRootElement(), weedhit )
  2. You are trying to send a client side created marker to the server side? that won't work, the marker only exists on the client side.
  3. https://www.dropbox.com/s/55rmrb302jcmy ... adshot.zip Try it.
  4. Well, there is nothing we can do here, it's something you must talk to the CIT staff.
  5. CIT has blocked parts of Latin America ( as far as I know ), which is why you can't connect. Don't ask me why they did it, ask them.
  6. What ads? I really can't see any.
  7. Castillo

    [HELP]

    You're welcome.
  8. Castillo

    [HELP]

    It's because you defined the variable "spark" locally, and not global.
  9. triggerClientEvent( "onPlayerWasted", root, giveWeapon) That makes no sense. "attacker" is not defined in the client side. dxDrawText requires onClientRender in order to be drawn constantly.
  10. The setCameraTarget part is on the roadmap, target version 1.3.6. https://bugs.multitheftauto.com/view.php?id=4258
  11. You mean the freeroam map? you can stop the "freeroam" resource or just disable to show the spawn map from the "freeroam" resource settings.
  12. Headshot is for players not peds.
  13. getPlayerAccount is a server side only function. What do you mean by "save"? save what?
  14. interpolateBetween guiGetPosition guiSetPosition getTickCount Evento: onClientRender
  15. You can edit this resource to use teams instead of skins: https://community.multitheftauto.com/in ... ils&id=233
  16. No hay razon para usar un timer, existe el evento "onClientGUIChanged" que es cuando el texto de un edit box o un memo cambia. Edit_Pass = guiCreateEdit(2, 4, 427, 32, "", false, editgui_pass) guiSetAlpha(Edit_Pass, 0.00) guiEditSetMasked ( Edit_Pass, true ) addEventHandler ( "onClientGUIChanged", guiRoot, function ( ) if ( source == Edit_Pass ) then local texto_pass = guiGetText ( Edit_Pass ) guiSetText ( text_edit_pass, string.rep ( "*", string.len ( texto_pass ) ) ) end end )
  17. local myString = "Hello World" local myString = string.rep ( "*", string.len ( myString ) )
  18. onClientRender no es una funcion, es un evento.
  19. No del todo. "Temas relacionados con el scripting, programación en lua, etc. "
  20. Castillo

    SKINS2

    You must use the following scripting functions: engineLoadTXD engineImportTXD engineLoadDFF engineReplaceModel Or you can use this resource to load them: https://community.multitheftauto.com/in ... ls&id=3016
  21. He's already using it. @WASSIm: It's random because "pairs" doesn't loop the table in order.
×
×
  • Create New...