Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

676 profile views

erisP's Achievements


Snitch (10/54)



  1. i tested again and got no errors
  2. local tableData = getElementData(source,"dataT") or {} outputChatBox(toJSON(tableData)) print - [ { "38": 2, "30": 3 } ] addEventHandler("onPlayerQuit", root, function() local account = getPlayerAccount ( source ) local data = toJSON(getElementData(source,"dataT")) or {} setAccountData(account,"SaveP", data) end) addEventHandler("onPlayerLogin", root, function(_, account) local Paintjobs = fromJSON(getAccountData(account,"SaveP")) or toJSON({}) setElementData(source,"dataT",Paintjobs) end) hi, i can't save this where am i doing wrong?
  3. I want it deleted when I drop a bomb on the safe zone from afar. How can I do it?
  4. erisP


    sorry for the confusion what you said gave me a new idea and solved my problem thanks
  5. erisP


    I haven't tried but it doesn't work
  6. erisP


    bunu yaptım ama oyun çöküyor nasıl düzgün çalıştırabilirim bu kodun düzgün çalışmasını istiyorum for you to understand better; https://github.com/multitheftauto/mtasa-blue/issues/1757
  7. erisP


    what i actually want to do I want to light and extinguish tool like setPedOnFire function but this function is not working in tool Try it if you wish, when you throw a Molotov at the player inside the vehicle, the player's game crashes.
  8. erisP


    I have no idea how to do what you say
  9. erisP


    addEventHandler("onClientVehicleDamage", root, function() if source == getPedOccupiedVehicle(localPlayer) then local x,y,z = getElementPosition(localPlayer) extinguishFire(x,y,z, 30) end end) i did but the game crashes How do I prevent the vehicle from being damaged when Molotov is thrown at the vehicle?
  10. No team can hurt the red team and what you did is wrong. The blue team needs to deal damage, so I can't use it. Another team needs to damage the red team. When I use your code, the blue team doesn't make any sense as long as it doesn't damage the red team.
  11. it didn't work, the red team players should not hurt each other, the blue team should hurt the red team, that's all I wanted.
  12. It doesn't give an error, but when I switch to the blue team, the player in the red team still does not take damage. The red team can't hurt each other, but the blue team can hurt the red team.
  13. WARNING: customweap/client.lua:210: Bad Argument @ 'getElementType' [Expected element at argument 1, got nil]
  14. I want the gun I put in the vehicle not to harm the players of the same team. function noDamageToPlayersFromCustomWeapons(target) if target == exports.Teams:isPlayerInTeam(localPlayer, "Red") and exports.Teams:isPlayerInTeam(localPlayer, "Red") then cancelEvent() end end addEventHandler("onClientWeaponFire", root, noDamageToPlayersFromCustomWeapons)
  15. sample: function start(vehicle) if getElementModel(vehicle) == 470 then local weapon = createWeapon("m4", 0, 0, 0) attachElements(weapon, vehicle, 1, -4.2, 0, 0, 30, 90) setWeaponClipAmmo(weapon, 9999) end end How can I detect the weapon I created using onClientPlayerDamage?
  • Create New...