Jump to content

KaMi

Members
  • Posts

    155
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by KaMi

  1. No, no, i'm not saying you replace the texture of the car. I'm telling you to replace the textures of an object and attach it to the car
  2. If you find it very difficult to use shaders, I recommend changing the textures of an object and applying them to a car that is invisible (it will not give you as many problems as shaders) If you find it very difficult to use shaders, I recommend changing the textures of an object and applying them to a car that is invisible (it will not give you as many problems as shaders)
  3. Try with this in client : function notoggle() toggleControl ("fire", false ) setTimer(toggle,1000,1) end addEventHandler("onClientResourceStart", resourceRoot, notoggle) function toggle() toggleControl ("fire", true ) setTimer(notoggle,1000,1) end
  4. KaMi

    Server problem

    Delete ACL and reinstall your mta.
  5. If you want to create a skin for a weapon, you must have some basic knowledge in Autodesk 3ds max or another program. If you want to replace the weapon, you will have to get the desired textures and use this example: --------------------------------------------------------------------meta-------------------------------------------------------------- <file src="m4.txd" /> <file src="m4.dff" /> -------------------------------------------------------------------CLIENT------------------------------------------------------------- function skins() txd = engineLoadTXD("m4.txd", 356 ) --you will get the desired textures and you will change the name to "m4". engineImportTXD(txd, 356) dff = engineLoadDFF("m4.dff", 356 ) engineReplaceModel(dff, 356) end addEventHandler ( "onClientResourceStart", getRootElement(), skins) This is the page of the weapons id: https://wiki.multitheftauto.com/wiki/Weapons ( only copy the model id )
  6. Me gusta la idea, siempre me ha encantado que la gente mezcle gamemodes, me parece un buen trabajo. Quedaría perfecto si agregan bosses o una isla para los zombies debido a que siempre hay usuarios que ocupan el lugar del área 51 para hacer roles militares, no faltan.
  7. WARNING: if you have heart problems, don´t use this resource. Hello, today i come with a jeff the killer resource. This isn´t a simple boss, this is a boss with a screamer when he kill you. (if you are a principiant, maybe this going to be useful for you). This is the link https://community.multitheftauto.com/?p=resources&s=details&id=15227. You can find him in the "?" sign (He can´t be killed with a knife). Here you have some screenshots. This is the boss. This is the screamer. Hope you like
  8. KaMi

    Ayuda / Help

    Yo también tenia el mismo problema pero pude solucionarlo bajando las gráficas del gta sa, del mta y haciendo mas espacio en el disco duro.
  9. UPDATES : * Fixed all textures ( thanks Dutchman101) *Players can´t kill mysteries with knife *Added CJ´s Mother *Refixed All textures ( Thanks again DutchMan101 <_< )
  10. That is bad ? I can´t understand because you use " ", if that is bad, im so sorry.
  11. For that you need edit the freeroam ( i think ) .
  12. You can use setPedAnimation but you need the correct anim.
  13. local marker = createMarker ( x, y , z, "cylinder", 1.5, 255, 255, 0, 170 ) function team(player) local pt = getPlayerTeam( player ) if (pt) then outputChatBox(player, "You are in team") else outputChatBox(player, "You need a team") end end addEventHandler("onMarkerHit", marker, team)
  14. Thx for the downloads <3
  15. You can use this https://community.multitheftauto.com/index.php?p=resources&s=details&id=5195 ( from castillo, Solidsnake14 ). that don´t going to reduce the damage but gives extra health to the player ( it would be the closest thing because going to give a effect like reducing damage ) .
  16. I recommend removing the "or" and doing it in different functions because sometimes the "if" does not detect it
  17. you put a variable for everything? If you don´t show all the code, we can´t help you
  18. Men, you can´t use "thePlayer" in serverside when you send since clientside. Change "thePlayer" for source or put a variable. ( i recommend you change for source ).
  19. -----------------CLIENT local marker = createMarker( 0, 0, 0,"cylinder", 2, 0, 200, 55, 255 ) --Marker function GUIwindow() local screenW, screenH = guiGetScreenSize() window = guiCreateWindow((screenW - 312) / 2, (screenH - 104) / 2, 312, 104, "", false)--GUI guiWindowSetSizable(window, false) showCursor(true) label = guiCreateLabel(56, 30, 201, 17, "Do you want to spawn a truck?", false, window) yesbtn = guiCreateButton(56, 64, 89, 30, "Yes", false, window) --Button nobtn = guiCreateButton(168, 65, 89, 29, "No", false, window) addEventHandler("onClientGUIClick", yesbtn, triggerEvent) --Handler end addEventHandler("onClientMarkerHit", marker, GUIwindow) function triggerEvent(button, state, hitElement) if source == yesbtn then if not isPedInVehicle ( localPlayer ) then triggerServerEvent("spawnTruck", localPlayer, hitElement) --Trying to carry local player as hitElement to server guiSetVisible(window, false) showCursor(false) else end end end -----------------------SERVER addEvent("spawnTruck", true) function spawnTheTruck(hitElement)--If player choses yes in client side GUI, then they will get a truck local Truck = createVehicle (515, 0, 5, 5, 0, 0, 0) warpPedIntoVehicle (source, Truck) end addEventHandler("spawnTruck", getRootElement(), spawnTheTruck) The Triggerserverevent isn´t the error. Your error it was put "onMarkerHit" (serverside event) in a clientside, put "destroyelement" (you don´t need that because you can use the function "guiSetVisible" and, you don´t need "hitElement", "source" going to be detected like player because you are triggering in clientside ( for default, "player" going to be "source" if you are triggering ).
  20. try deleting the "getLocalPlayer". If that don´t change nothing, try sending the buttons.
  21. KaMi

    Ghost Mode

    if you can´t see anyone, just use setElementVisibleTo
  22. KaMi

    Ghost Mode

    function GhostMode(player) local account = getPlayerAccount(player) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Moderator" ) ) or isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) then if getElementAlpha(player) == 255 then setElementAlpha(player,0) setPlayerNametagShowing(player,false) setPedWeaponSlot(player,0) outputChatBox("#ffffff[GHOSTMODE] #379bffYou have enabled the Ghost Mode.",player,255,255,255,true) else setElementAlpha(player,255) setPlayerNametagShowing(player,true) outputChatBox("#ffffff[GHOSTMODE] #379bffYou have disabled the Ghost Mode.",player,255,255,255,true) end end end addCommandHandler("g",GhostMode) function (player) for index, element in ipairs ( getAttachedElements ( player ) ) do if ( getElementType (element) == "blip" ) then destroyElement (element) end end end addCommandHandler("ghostmode",GhostMode) Oops, i forget the name of function
×
×
  • Create New...