Jump to content

darhal

Members
  • Posts

    582
  • Joined

  • Last visited

Everything posted by darhal

  1. I will ask quetion from where you get those nice pictures ? Plz help if you made them so how and which software u use ?
  2. So smart thx a lot
  3. Hi all I finish my house system a long time ago in 2014 and with mta 1.4 new functions I'd like to make furnture system for the house system so the problem was how to save objects that you buy for your house using sql ?? It will be a big database with lag on players join and quit also making many objects will influance on the FPS so how to resolve all this ? Any suggetions please Regards ,
  4. Change the vehicle dont use banshe use infernus or smthg like this
  5. Maybe mta bug
  6. Strange really
  7. Hi all
  8. Post the new code
  9. Yes like this is supposed to work try again with shooting them in body it should work
  10. Server side
  11. Delte line305 and replace it with setElementHealth(ped,( getElementHealth(ped)-math.random(35)))
  12. Use setElementHealth
  13. Delte line 306 serverside
  14. exports.scoreboard:addScoreboardColumn('Money') function setstats () local account = getPlayerAccount (source) local money = getPlayerMoney ( source ) setElementData ( source, "Money", "$" .. money ) end addEventHandler ( "onPlayerSpawn", getRootElement(), setstats ) addEventHandler ( "onPlayerLogin", getRootElement(), setstats ) function updateStats() for i, v in ipairs(getElementsByType("player")) do local money = getPlayerMoney ( v ) setElementData ( v, "Money", "$" .. money ) end end setTimer(updateStats, 10000, 0)
  15. setTimer
  16. The code is messy cuz I use phone
  17. local theVehicle = {}local marker = createMarker( 1920.599609375, 1310.099609375,8, "cylinder", 2, 0 ,0,255, 155)function vehicle(thePlayer) if (getElementType(thePlayer) == "player") then if isElement( theVehicle[thePlayer] ) then destroyElement(theVehicle[thePlayer] ) end if ( isPedInVehicle(thePlayer) ) then return end theVehicle[thePlayer] = createVehicle(470, 1921.599609375, 1298.599609375,9.3999996185303, 0, 0, 270 ) outputChatBox ( "This is a free vehicle. Spawning another one will destroy this vehicle.", thePlayer, 0, 0, 255 ) warpPedIntoVehicle(thePlayer, theVehicle[thePlayer]) endendaddEventHandler("onMarkerHit", marker, vehicle)
  18. Make sure that the first argument is defined
  19. Delte from line 314 to line 328 and past this client side function zombiedamaged ( attacker, weapon, bodypart ) if getElementType ( source ) == "ped" then if (getElementData (source, "zombie") == true) then triggerServerEvent ("headboom", source, source, attacker, weapon, bodypart ) end end end addEventHandler ( "onClientPedDamage", getRootElement(), zombiedamaged )
  20. Post the full code
  21. darhal

    Help

    You are welcome
  22. darhal

    Help

    Use if type(x) == 'number' then outputChatBox('X must be number') return end
  23. I dont edit anything i swear
  24. darhal

    suggestions

    Explain please
  25. I think team userdata not ?
×
×
  • Create New...