Notorious^

Members
  • Content count

    8
  • Joined

  • Last visited

Community Reputation

4 Neutral

About Notorious^

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Notorious^

    Owner head logo from ACL

    giving this : bad argument #1 to 'ipairs' (table expected, got boolean), [DUBx5]
  2. Notorious^

    Owner head logo from ACL

    yes ı did it but giving error. error line : local x2, y2, z2 = getElementPosition(localPlayer) ı need change 'localPlayer' but what must ı put in place ?
  3. Notorious^

    Owner head logo from ACL

    Thanks for your interest.but its not work again.all codes make sense.ı dont see any logo on my head :C
  4. Notorious^

    Owner head logo from ACL

    server side : addEventHandler("onResourceStart", resourceRoot, function() for i, player in ipairs(getElementsByType("player")) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Owner")) then setElementData(player,"Owner",true) end end end) addEventHandler("onPlayerLogin", root, function() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Owner")) then setElementData(source,"Owner",true) end end) client side : local imgW = 500 local imgH = 90 function adminLogo() for i, player in ipairs(getElementsByType ('player')) do if getElementData(player,"Owner") then if player ~= localPlayer then local cX, cY, cZ = getCameraMatrix() local hX, hY, hZ = getPedBonePosition(player, 8) local hZ = hZ + 0.5 local pX,pY,pZ = getPedBonePosition(localPlayer, 8) local pZ = pZ + 0.5 if getScreenFromWorldPosition(hX, hY, hZ) and isLineOfSightClear(cX,cY,cZ, pX,pY,pZ) then local sX, sY, sD = getScreenFromWorldPosition(hX, hY, hZ) local relative = (50 - sD) / 50 if relative > 0 then local iW = imgW * relative local iH = imgH * relative local iX = sX - (iW / 2) local iY = sY - (iH / 2) dxDrawImage(iX, iY, iW, iH, "logo.png") end end end end end end addEventHandler("onClientRender", root, adminLogo) ı want add a logo for owner.logo should be on the owner's head.ı maked some codes but not working.what is my mistake ? debug not giving any error.please help friends.ı will be grateful to you
  5. local spawns = { { 5, 1270.63086, -795.69354, 1084.17188 }, { 5, 1272.81873, -808.30115, 1084.00781 }, { 5, 1234.19507, -807.81671, 1084.00781 }, { 5, 1245.26343, -778.87067, 1084.00781 } } function spawn( player ) local rnd = math.random( 1, #spawns ) setElementInterior( player, spawns[rnd][1], spawns[rnd][2], spawns[rnd][3] ) end addCommandHandler("duel",spawn) ı want make random teleport to in madd dogg's house for duel but what is my wrong ? its not work .. can you help me ? i
  6. Notorious^

    Headshot Dead Animation

    thanks guys
  7. Notorious^

    Headshot Dead Animation

    addEvent "onPlayerHeadshot" addEventHandler("onPlayerDamage", getRootElement(), function (attacker, weapon, bodypart, loss) if bodypart == 9 then local result = triggerEvent("onPlayerHeadshot", source, attacker, weapon, loss) if result == true then killPed(source, attacker, weapon, bodypart) end end end ) Hello Guys You know this is basic headshot script.but ı want add dead animation when he dying with headshot ? which can ı add some stuff ? can you help me ?