iiv03 Posted July 22, 2019 Share Posted July 22, 2019 السلام عليكم ليش كل مايجي الاعب ياخذ النيترو مايبين لي انه هو اخذ؟ local target = getCameraTarget() if target and getElementType(target) == "vehicle" then localp = getVehicleOccupant(target) else localp = getLocalPlayer() end if(not localp) then return; end if(getPedOccupiedVehicle(localp)) then local veh2 = getPedOccupiedVehicle(localp); local nitro = getVehicleNitroLevel(veh2) or 0; if nitro ~= false and nitro ~= nil and nitro > 0 then dxDrawRectangle(hudbar.x*1.97,hudbar.y*1.83,hudbar.width/10*10*nitro,hudbar.height*0.5, tocolor(0,120,255, 230), false) end end end end بس لو عطيته انا upgrade all يضهر النيترو؟! Link to comment
N3xT Posted July 22, 2019 Share Posted July 22, 2019 local target = getCameraTarget() if target and getElementType(target) == "player" then localp = target else localp = localPlayer end if(not localp) then return; end if(getPedOccupiedVehicle(localp)) then local veh2 = getPedOccupiedVehicle(localp); local nitro = getVehicleNitroLevel(veh2) or 0; if nitro ~= false and nitro ~= nil and nitro > 0 then dxDrawRectangle(hudbar.x*1.97,hudbar.y*1.83,hudbar.width/10*10*nitro,hudbar.height*0.5, tocolor(0,120,255, 230), false) end end end end Link to comment
iiv03 Posted July 23, 2019 Author Share Posted July 23, 2019 44 minutes ago, N3xT said: local target = getCameraTarget() if target and getElementType(target) == "player" then localp = target else localp = localPlayer end if(not localp) then return; end if(getPedOccupiedVehicle(localp)) then local veh2 = getPedOccupiedVehicle(localp); local nitro = getVehicleNitroLevel(veh2) or 0; if nitro ~= false and nitro ~= nil and nitro > 0 then dxDrawRectangle(hudbar.x*1.97,hudbar.y*1.83,hudbar.width/10*10*nitro,hudbar.height*0.5, tocolor(0,120,255, 230), false) end end end end المشكله لسا مانحلت الحين صارو اثنين مايضهرو الدم والنيترو :v Link to comment
nxFairlywell Posted July 23, 2019 Share Posted July 23, 2019 (edited) ._. deleted Edited July 23, 2019 by NX_CI Link to comment
iiv03 Posted July 23, 2019 Author Share Posted July 23, 2019 6 hours ago, NX_CI said: ._. deleted meh Link to comment
HassoN Posted July 23, 2019 Share Posted July 23, 2019 قاعد تقول انه يبين لو انت عطيته من لوحة الادمن !؟ يعني المود شغال زي العسل ، المشكلة من المود الثاني الي قاعد يعطيهم نيترو ، شكله ما يعطيهم اصلا Link to comment
iiv03 Posted July 23, 2019 Author Share Posted July 23, 2019 (edited) 2 hours ago, HassoN said: قاعد تقول انه يبين لو انت عطيته من لوحة الادمن !؟ يعني المود شغال زي العسل ، المشكلة من المود الثاني الي قاعد يعطيهم نيترو ، شكله ما يعطيهم اصلا كلأمك صحيح بس الجيم مود حق ريس يعني مفرووضض يبين.. السالفه لو الاعب الثاني!! اخذ النيترو مايبن لي بس لو اخذت انا نيترو يبين لي يعني الا انا يبين نيترو عندي . ليه الدم موتر يمدني اشوف دم موتر لاعب؟ والنيترو لا. local target = getCameraTarget() if target and getElementType(target) == "vehicle" then localp = getVehicleOccupant(target) else localp = getLocalPlayer() end if(not localp) then return; end local x, y, z = getElementPosition(localp) local pr = getPedRotation(localp) local _,_,playerRotation = getElementRotation(localp) local px,py,pz = getElementPosition(localp) dxDrawRectangle(hudbar.x*1.97,hudbar.y*1.9,hudbar.width,hudbar.height*0.5, tocolor(255,255,255,80), false) dxDrawRectangle(hudbar.x*1.97,hudbar.y*1.83,hudbar.width,hudbar.height*0.5, tocolor(255,255,255,80), false) if(getPedOccupiedVehicle(localp)) then local veh = getPedOccupiedVehicle(localp); if ( getElementHealth(veh) >= 999 ) then vehiclehealth = 100 else vehiclehealth = math.floor(getElementHealth ( veh )/10) end dxDrawRectangle(hudbar.x*1.97,hudbar.y*1.9,hudbar.width/100*vehiclehealth,hudbar.height*0.5, tocolor(0,255,0, 230), false) if(getPedOccupiedVehicle(localp)) then local veh = getPedOccupiedVehicle(localp); local nitro = getVehicleNitroLevel(veh) or 0; if nitro ~= false and nitro ~= nil and nitro > 0 then dxDrawRectangle(hudbar.x*1.97,hudbar.y*1.83,hudbar.width/10*10*nitro,hudbar.height*0.5, tocolor(0,120,255, 230), false) Edited July 23, 2019 by liwahadri Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now