Jump to content

Recommended Posts

salut a tous !

..

brabbi ynajjamchi wé7éd y3awinni bel code ? .

n7eb idha ken ay béb ma7loul fil karhba wel chauffeur walla elli 9a3ed bjanbou .. yasm3ou sot .

ma3reftch kifeh na3mlou el code ! ..

amma essout yji ll elli rékéb el karhba akahaw ! w yatla3lou dx .. w idha ken el biben msakrin destroyElement .

local Cars = getElementsByType("vehicle") 
for _,k in ipairs ( Cars ) do 
local isDoorAjar = false 
    for i=0,5 do 
    local doorState = getVehicleDoorState(k, i) 
    if doorState then 
Link to comment
addEventHandler("onClientRender",root, 
function doesVehicleHaveDoorOpen( ) 
    if (getVehicleOccupant(source)) then 
    local doorState = getVehicleDoorState(getVehicleOccupant(source)) 
        if doorState == 2 or doorState == 3 or doorState == 4 or doorState == 5 then 
        playSound("sound.mp3") 
        end 
    end 
end 
) 

Link to comment
addEventHandler("onClientRender",root, 
function doesVehicleHaveDoorOpen( ) 
    if (getPedOccupiedVehicle(source)) then 
    local doorState = getVehicleDoorState(getPedOccupiedVehicle(source)) 
        if doorState == 2 or doorState == 3 or doorState == 4 or doorState == 5 then 
        playSound("sound.mp3") 
        end 
    end 
end 
) 

Link to comment
addEventHandler("onClientRender",root, 
function () 
    if (getPedOccupiedVehicle(localPlayer)) then 
        local doorState = getVehicleDoorState(getPedOccupiedVehicle(localPlayer)) 
        if doorState == 2 or doorState == 3 or doorState == 4 or doorState == 5 then 
            playSound("sound.mp3") 
        end 
    end 
end 
) 

Link to comment
addEventHandler("onClientRender",root, 
function () 
    if (getPedOccupiedVehicle(localPlayer)) then 
        for i=0,5 do 
            local doorState = getVehicleDoorState(getPedOccupiedVehicle(localPlayer), i) 
            if doorState == 2 or doorState == 3 or doorState == 4 or doorState == 5 then 
                playSound("sound.mp3") 
            end 
        end 
    end 
end 
) 

Link to comment

5dém .. mais el sot may7ébéch ya3mel stop ..

brabbi chouf ..

tnajjamchi trigilli el mod .. kima 9otlek .. w idha ken el biben ma7loula yji klém( Dx ) .. w y9oullou el karhba ma7loula .. w idha kén el bibén tsakrou el dx témchi .

wél sound yémchi .. amma el dx a3mélhéli math.random ! alwen

w idha kén t7éb 7aja mo9abel hedha 9olli !

Edited by Guest
Link to comment

omorek 6/zit :lol:

 --setting 
local sx,sy = guiGetScreenSize ( ) --screen dont change 
local sx1, sy1, sx2, sy2 = sx*(250.0/1440),sy*(655.0/900),sx*(27.0/1440),sy*(232.0/900) --post 
local r, g, b = math.random(0, 255), math.random(0, 255), math.random(0, 255) --color 
local scale = 2.15 --scale 
local font = "pricedown" --font 
  
addEventHandler("onClientRender",root, 
function () 
    if (getPedOccupiedVehicle(localPlayer)) then 
        for i=0,5 do 
            local doorState = getVehicleDoorState(getPedOccupiedVehicle(localPlayer), i) 
            if doorState == 2 or doorState == 3 or doorState == 4 or doorState == 5 then 
                dxDrawText("Door is open",sx1, sy1, sx2, sy2,tocolor(r, g, b,255),scale,font,"right","top",false,false,false) 
                playSound("sound.mp3" ,false) 
            end 
        end 
    end 
end 
) 

Link to comment

fama 7aja hablatni il script ma5damlich 3andi wa 5dam 3andek xD

--setting 
local sx,sy = guiGetScreenSize ( ) --screen dont change 
local sx1, sy1, sx2, sy2 = sx*(27.0/1440),sy*(655.0/900),sx*(27.0/1440),sy*(232.0/900) --post 
local r, g, b = math.random(0, 255), math.random(0, 255), math.random(0, 255) --color 
local scale = 2.15 --scale 
local font = "pricedown" --font 
  
addEventHandler("onClientRender",root, 
function () 
    if (getPedOccupiedVehicle(localPlayer)) then 
        for i=0,5 do 
            local doorState = getVehicleDoorState(getPedOccupiedVehicle(localPlayer), i) 
            if doorState == 2 or doorState == 3 or doorState == 4 or doorState == 5 then 
                dxDrawText("Door is open",sx1, sy1, sx2, sy2,tocolor(r, g, b,255),scale,font,"left","top",false,false,false) 
                playSound("sound.mp3" ,true) 
            end 
        end 
    end 
end 
) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...