Jump to content

كود لصورة


Recommended Posts

Posted

السلام عليكم

كيفكم شباب

باختصار الحين ابي الصوره ماتفتح غير لو كنت بسياره فقط سيارة مقارب

لو خرجت منها تختفي الصورة

حاولت خرب الكود

function showClientImage() 
   guiCreateStaticImage( 994, 270, 20, 40, ".png", false ) 
   if (not isPedInVehicle(Image)) then 
   end 
addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), showClientImage ) 
end 

ألـحسـأب مستخدم من قبـل ~ #

ألـدب ~ :D

و

العصل ~ :lol:

#

:?

Posted
ما فهمت عليكـ كثير .. انت تقصد في موديل سيارهـ محدد تبغاهـ لو ركب اللاعب هالموديل تجي صورهـ ولو طلع تختفي الصورهـ ؟

لا لا يطلع بكل السيارات مو شي محدد

لو يركب اي سياره اي سياره تطلع له الصوره

ألـحسـأب مستخدم من قبـل ~ #

ألـدب ~ :D

و

العصل ~ :lol:

#

:?

Posted (edited)

Image = guiCreateStaticImage( 994, 270, 20, 40, "ImageName.png", false ) 
guiSetVisible (Image,false) 
  
addEventHandler ("onClientVehicleEnter",root, function (thePlayer) 
        if thePlayer == getLocalPlayer() then 
        guiSetVisible (Image,true) 
        end 
  end 
) 
  
addEventHandler("onClientVehicleExit", root, function(thePlayer) 
        if thePlayer == getLocalPlayer() then 
            guiSetVisible (Image,false) 
        end 
    end 
) 
Edited by Guest

"A Year from Now You May Wish You Had Started Today"

Posted (edited)

عندي لك طريقة أسهل

سوي الصورة الي تبيها

وخلي الشفافية حقتها 0 ء

وخلي يوم يركب الموتر تصير الشفافية 100 ء

ويوم يخرج من الموتر ترجع الشفافية 0 ء

وهكذا

هذا مثال من الويكي بس مو زي طلبك انت سويه على طلبك

function invisible() 
        setElementAlpha(localPlayer, 0) 
end 
addCommandHandler ( "invisible", invisible )  

بالتوفيق :mrgreen:

Edited by Guest
Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted
عندي لك طريقة أسهل

سوي الصورة الي تبيها

وخلي الشفافية حقتها 0 ء

وخلي يوم يركب الموتر تصير الشفافية 100 ء

ويوم يخرج من الموتر ترجع الشفافية 0 ء

وهكذا

هذا مثال من الويكي بس مو زي طلبك انت سويه على طلبك

function invisible() 
        setElementAlpha(localPlayer, 0) 
end 
addCommandHandler ( "invisible", invisible  

بالتوفيق :mrgreen:

الأفضل يشيل النافذة نهآئياً بدل ما يخفيها = ))

وعندك قوس ناقص بكودك

"A Year from Now You May Wish You Had Started Today"

Posted
Image = guiCreateStaticImage( 994, 270, 20, 40, "ImageName.png", false ) 
guiSetVisible (Image,false) 
  
addEventHandler ("onClientVehicleEnter",root, function (thePlayer) 
        if thePlayer == getLocalPlayer() then 
        guiSetVisible (Image,true) 
        end 
  end 
) 
  
addEventHandler("onClientVehicleExit", root, function(thePlayer) 
        if thePlayer == getLocalPlayer() then 
            guiSetVisible (Image,true) 
        end 
    end 
) 

false يفترض بسطر 13 تحط

CiTLh.png
Posted

اشكركم شباب

شكرا سفاح

بجرب وارد لكم

مكنت روحت افرفر ع المدارس اجيب اخواني كاني سواق باص ذذ

بجرب واقولكم

ألـحسـأب مستخدم من قبـل ~ #

ألـدب ~ :D

و

العصل ~ :lol:

#

:?

Posted
عندي لك طريقة أسهل

سوي الصورة الي تبيها

وخلي الشفافية حقتها 0 ء

وخلي يوم يركب الموتر تصير الشفافية 100 ء

ويوم يخرج من الموتر ترجع الشفافية 0 ء

وهكذا

هذا مثال من الويكي بس مو زي طلبك انت سويه على طلبك

function invisible() 
        setElementAlpha(localPlayer, 0) 
end 
addCommandHandler ( "invisible", invisible  

بالتوفيق :mrgreen:

الأفضل يشيل النافذة نهآئياً بدل ما يخفيها = ))

وعندك قوس ناقص بكودك

قول واللهي

الكود مثال من الويكي

لاحظ كلامي

ومو مشكلة اذا يشيل النافذة من الأساس نفس الشي .. وهو قال صورة

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted
تم شغال معي كودك سفاح

~|Strong|~ يعطيك العافي ي اخ

الله يعافيك

واسمي سترونق :lol:

حياك الله :mrgreen:

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted

قول واللهي

الكود مثال من الويكي

لاحظ كلامي

ومو مشكلة اذا يشيل النافذة من الأساس نفس الشي .. وهو قال صورة

واللهي؟

شكلك ما تبي تفهم :?

نآسخ الكود من الويكي وسيت تنسخ القوس ي شآطر = ))

"A Year from Now You May Wish You Had Started Today"

Posted

قول واللهي

الكود مثال من الويكي

لاحظ كلامي

ومو مشكلة اذا يشيل النافذة من الأساس نفس الشي .. وهو قال صورة

واللهي؟

شكلك ما تبي تفهم :?

نآسخ الكود من الويكي وسيت تنسخ القوس ي شآطر = ))

اها صح :mrgreen:

فاتح من الجوال وما انتبهت

ثانكس على التنبيه

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

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...