Jump to content

NeverGiveup

Members
  • Posts

    328
  • Joined

  • Last visited

1 Follower

About NeverGiveup

  • Birthday 25/04/1997

Details

  • Gang
    Dark side
  • Location
    Big appartment.
  • Occupation
    Literature student.
  • Interests
    I like my local server! indeed.

Recent Profile Visitors

2,013 profile views

NeverGiveup's Achievements

Fool

Fool (23/54)

12

Reputation

  1. local cPed = createPed(0, x, y, z) function outputPlayerHitByWater(thePed) local attacker = getVehicleOccupant(source) if (thePed == cPed and getElementType(thePed) == "ped") then killPed ( thePed, attacker, 56, 9, false) end end addEventHandler("onClientPedHitByWaterCannon", getRootElement(), outputPlayerHitByWater)
  2. https://wiki.multitheftauto.com/wiki/DxDrawImage https://wiki.multitheftauto.com/wiki/OnClientRender
  3. do this local value = getPlayerMoney(receiver) takePlayerMoney(receiver, value)
  4. addEvent("car", true) addEventHandler("car", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(599, x, y, z) --599 is the vehicle's hands. Put any vehicle you want warpPedIntoVehicle(source, vehicle[source]) playerMarker = createMarker(341.64114379883, -1351.6920166016, 14.5078125, "cylinder", 1, 10, 244, 23, 200) addEventHandler("onMarkerHit", playerMarker, handlePlayerMarker) end) function handlePlayerMarker(hitElement) local elementType = getElementType(hitElement) outputChatBox(" Itt tudod fel venni a szolgálatott /dutyonR") outputChatBox("Itt tudod le tenni a szolgálatott /dutyoffR") end
  5. local thePed = createPed(0, x, y, z) addEventHandler("onClientClick", root, function(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedWorld) if (button == "right") and (state == "up") then if isElement(clickedWorld) and clickedWorld == thePed then IsCardShop = not IsCardShop removeEventHandler("onClientRender", root, Panel) if IsCardShop then addEventHandler("onClientRender", root, Panel) end end end end) here
  6. damn its been years and Hi
  7. show your current code
  8. because there is no handler in Freeroam, start play resource
  9. NeverGiveup

    Headshot

    What do you mean by passive and green areas? killer can headshot victim that is inside safe zones?? if so add some check if the victim is inside safe zones then return false it eg: using https://wiki.multitheftauto.com/wiki/IsInsideRadarArea if (isElementInsideRadarArea(victim, area) then return false end
  10. NeverGiveup

    WARNING

    should also check isElement(carga[source]) before destroying it
  11. you can create table and put coordinates and width or height if they vary -- Store your coordinates and width height here local warehouses = { {x, y, z, width, height}, {x1, y2, z2, width2, height},} local warehouse = {col = {}, radar = {}} for i, v in ipairs(warehouses) do local x, y, z, w, h = unpack(v) warehouse.col[i] = createColRectangle(x, y, z, w, h) warehouse.radar[i] = createRadarArea(x, y, z, w, h, 0, 0, 255, 90) end
  12. local criminals = {} function checkCriminals() local cr, cg, cb = getPlayerNametagColor(source) if getPlayerWantedLevel(source) >= 1 and cr, cg, cb ~= 255, 0, 0 then setPlayerNametagColor(source, 255, 0, 0) criminals[source] = createBlipAttachedTo(source,0, 25, 255, 0, 0) else setPlayerNametagColor(source, 0, 255, 0) if criminals[source] and isElement(criminals[source]) then destroyElement(criminals[source]) criminals[source] = nil end end end addEvent("onPlayerWantedLevelChange", true) addEventHandler("onPlayerWantedLevelChange", root, checkCriminals) untested i guess it works..
  13. function setClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) then local textureString = getAccountData(account, "Clothessaver:Texture") local modelString = getAccountData(account, "Clothessaver:Model") iprint(textureString, modelString) -- check debugscript for info if textureString and modelString then -- check if textureString is not false or nil local textures = split (textureString, 44) ---- line 33 local models = split (modelString, 44) ---- line 34 for i=0, 17, 1 do if ( textures[i+1] ~= "," or textures[i+1] ~= nil ) then addPedClothes(source, textures[i+1], models[i+1], i) ---- line 36 end end outputChatBox("Clothes were added by clothessaver", source, 0, 255, 0) textures = {} models = {} end end end addEventHandler("onPlayerLogin", getRootElement(), setClothes) It's either your account data retrieving false or nil value, you should check it before actually split expected string.
  14. Well if you have your own system to give player wanted level, you can do it easily put triggerEvent like such. function yourOwnGivePlayerWantedLevel(player, wl) local lastWl = getPlayerWantedLevel(player) if wl then local newWl = wl + lastWl -- Can be minus can be plus setPlayerWantedLevel(player, newWl) triggerEvent("onPlayerWantedLevelChange", player, lastWl, newWl) end end
×
×
  • Create New...