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. 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 ,
  3. Change the vehicle dont use banshe use infernus or smthg like this
  4. Yes like this is supposed to work try again with shooting them in body it should work
  5. Delte line305 and replace it with setElementHealth(ped,( getElementHealth(ped)-math.random(35)))
  6. Delte line 306 serverside
  7. 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)
  8. The code is messy cuz I use phone
  9. 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)
  10. Make sure that the first argument is defined
  11. 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 )
  12. darhal

    Help

    You are welcome
  13. darhal

    Help

    Use if type(x) == 'number' then outputChatBox('X must be number') return end
  14. I dont edit anything i swear
×
×
  • Create New...