Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Burak5312

  • Rank

Recent Profile Visitors

349 profile views
  1. emin değilim ama isimle ilgili olan bölüme 2 nokta arasını hesaplayan bir if ekle böylece istediğine varabilirsin aynı şekilde ne kadar mesafede görüneceğini ayarlamak için tekrar 5 i arttır veya azalt kodda doğru yeri yapmamış olabilirim ama isim bölümünü if içine alcaksın if (getDistanceBetweenPoints3D(x, y, z, px, py, pz) <= 5 or getPedTarget(localPlayer) == v) then end örnek: local x,y,z = getElementPosition(localPlayer); for _,v in ipairs(getElementsByType("player")) do setPlayerNametagShowing(v, false); if (v ~= localPlayer)
  2. if (getDistanceBetweenPoints3D(x, y, z, px, py, pz) <= 5 or getPedTarget(localPlayer) == v) then try increase 5
  3. maybe this work function FORCE_PLAYER_WALK( player, condition ) if( condition == true ) then bindKey(player, "w", "down", function() setControlState(player, "walk", true) setControlState(player, "forwards", true) end) bindKey(player, "w", "up", function() setControlState(player, "walk", false) setControlState(player, "forwards", false) end) toggleControl( player, "sprint", false ) toggleControl( player, "forwards", false ) toggleControl( player, "backwards", false ) toggleControl( player, "left", false ) toggleControl( player, "right", false )
  4. hello how can i detect when serverside ped damaged by player my purpose is ped turn face player and run if player not inside range function findRotation( x1, y1, x2, y2 ) local t = -math.deg( math.atan2( x2 - x1, y2 - y1 ) ) return t < 0 and t + 360 or t end function createTank( x, y, z ) if not (x) or not (y) or not (z) then return false end local THE_TANK = createPed( 0, x, y, z ) local tankX, tankY, tankZ = getElementPosition( THE_TANK ) local DETECT_RANGE = createColSphere( tankX, tankY, tankZ, 50 ) local BLIP = createBlipAttachedTo ( THE_TANK, 23 )
  5. hello there a way to show a client side ped to another player? or is this just done as server side? my purpose show one player around zombies other player thank you
  6. thanks man worked! actually i write getter setters client version will be better thank you
  7. hello im trying call text with triggerClientEvent but saying ERROR: server triggered clientside event showHUD but event not is not added clientside and my client side code draw nil on the screen im trying to 58.line in server side my purpose is transfer server side data to client side client local screenW, screenH = guiGetScreenSize() function EXP_HUD(exp) dxDrawText( tostring( exp ), screenW/2, screenH/2, screenW/2, screenH/2, tocolor( 255,255,255,255 ), 1, "bankgothic", "center", "center" ) end addEventHandler("onClientRender", root, EXP_HUD) addEvent( "showHUD",
  8. this time not be full exp bar when level up
  9. yes goes below 0 but i dont know how to fix this i spend my all day :d problem calculate formule? i tryed other methods but when level up exp bar staying half i need zero bar
  10. hello i need calculate between totalexp and requiredexp but i need reset exp bar when level up this bar disturb and backward like that 3 or 4 level help me please function math.round(number) return number - number % 1 end function getRequiredEXP(level) return math.round(math.pow(level, 2) * 300) end local level = 1 local currentEXP = 0 local totalEXP = 0 local requiredLevel = 0 local requiredEXP = getRequiredEXP(requiredLevel + 1) function DRAW_HUD() local percentageEXP = (currentEXP / requiredEXP) * 369 ---- formule dxDrawRectangle(1539, 914, 369, 5, tocolor(0,
  11. hello when I logging in this script my hud is visible but reconnect and login after never see my hud help please if i restart this resource visible only one time i check with ZR:ShowMyHud visible setFPSLimit(60) function gInit_join() setCameraMatrix(source, 0, 0, 400, 90, 360, 180, 0) toggleControl(source, "radar", false) end addEventHandler("onPlayerJoin", getRootElement(), gInit_join) function gInit_login(_, theCurrentAccount) local playerEXP = getAccountData(theCurrentAccount, "ZR:EXP") local playerLevel = getAccountData(theCurrentAccount, "ZR:Level") setElementData(source, "
  12. actually i scripting a kind zone game and i need make clean map and i need disable scale because distrupt text on the map
  13. yes i need to disable info text and scaling
  • Create New...