Jump to content

طلب


Recommended Posts

Posted

يعني م ابيها تطلع ابد وش الكود اللي يخفيها؟ hud ي شباب ابي اخفي النجوم من الـ

Posted
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), 
function () 
        setPlayerHudComponentVisible( "wanted", false ) 
end) 

Posted
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), 
function () 
        setPlayerHudComponentVisible( "wanted", false ) 
end) 

مثالك صحيح ولاكن نسيت تحط ارقمنت الاعب وهو اول ارقمنت من هذا الفنكشن

bool setPlayerHudComponentVisible ( player thePlayer, string component, bool show ) 

player thePlayer = ??

#2 Example

addCommandHandler ( "اخفاء", 
function ( player )  
    setPlayerHudComponentVisible ( player, "wanted", false ) 
end ) 
Posted

كوده صحيح

شف

addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), 
function () 
        setPlayerHudComponentVisible( "wanted", false ) 
end) 

onClientResourceStart == Client Side

والفنكشن دا

setPlayerHudComponentVisible 

كلينت + سيرفر

لاكن في الكلينت مافي 3 ارقمنت

و السيرفر ففيها 3 ارقمنتات

setPlayerHudComponentVisible( component, false ) 

دا كلينت

لاكن السيرفر بيكون بذا الشكل

setPlayerHudComponentVisible ( source, "ammo", false ) 

راجع الويكي

https://wiki.multitheftauto.com/wiki/Se ... entVisible

Posted
كوده صحيح

شف

addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), 
function () 
        setPlayerHudComponentVisible( "wanted", false ) 
end) 

onClientResourceStart == Client Side

والفنكشن دا

setPlayerHudComponentVisible 

كلينت + سيرفر

لاكن في الكلينت مافي 3 ارقمنت

و السيرفر ففيها 3 ارقمنتات

setPlayerHudComponentVisible( component, false ) 

دا كلينت

لاكن السيرفر بيكون بذا الشكل

setPlayerHudComponentVisible ( source, "ammo", false ) 

راجع الويكي

https://wiki.multitheftauto.com/wiki/Se ... entVisible

الكود حقه اشتغل معي, وش المشكله؟؟

Posted

انا اول مافتحت الصفحه شفت سيرفر , مانزلت وشفت كلينت

مشكور عالتوضيح + مثالي من جانب سيرفر وشغال 100% ومثال بلاك نكست من جانب كلانت وشغال بعد 100% ء

Posted

بس فيه مشكله فالكود هو يخفي لكن اذا قعد 10 دقايق - 5 يرجع نفس اول

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