AnoirTiza Posted January 7, 2019 Posted January 7, 2019 (edited) dxDrawRectangleشباب بدي لما يكون الشخص في هيدرا ما يضهر له ال ================================== Client Side ================================== -- blablabla if getElementHealth(vehicle) >= 999 then -- bla bla triggerServerEvent ( "disableHydra", localPlayer) dxDrawRectangle((screenW - 310) / 2, (screenH - 31) / 2, 310, 31, tocolor(0, 0, 0, 155), false) dxDrawRectangle((screenW - 310) / 2, (screenH - 31) / 2, 100*kmh/200, 31, tocolor(100, 100, 100, 255), false --.... bla bla ================================== Server side ================================== function trigger() if getElemntModel(vehicle) == 525 then return end end addEvent("disableHydra",true) addEventHandler("disableHydra",resrouceRoot,trigger) Edited January 7, 2019 by AnoirTiza أخطاء كتابية
#[K]iLLeR<3 Posted January 8, 2019 Posted January 8, 2019 جيب الاعب الي بالسيارة و اعمل تحقق اذا كان بالسيارة او لا و جيب موديل السيارة اذا كان الاي دي حق الهيدرة هو الي راكبه الاعب ينعمل الدي اكس لو انا مو فون كنت كتبته لك
#Major . Posted January 8, 2019 Posted January 8, 2019 13 hours ago, AnoirTiza said: dxDrawRectangleشباب بدي لما يكون الشخص في هيدرا ما يضهر له ال ================================== Client Side ================================== -- blablabla if getElementHealth(vehicle) >= 999 then -- bla bla triggerServerEvent ( "disableHydra", localPlayer) dxDrawRectangle((screenW - 310) / 2, (screenH - 31) / 2, 310, 31, tocolor(0, 0, 0, 155), false) dxDrawRectangle((screenW - 310) / 2, (screenH - 31) / 2, 100*kmh/200, 31, tocolor(100, 100, 100, 255), false --.... bla bla ================================== Server side ================================== function trigger() if getElemntModel(vehicle) == 525 then return end end addEvent("disableHydra",true) addEventHandler("disableHydra",resrouceRoot,trigger) عندك خطا في اسم فنكشن صححه كذا getElemntModel >>>>>>>> getElementModel سقطت تفاحة واحدة ففهم الأنسان معنى الجاذبية سقطت الملايين من الجثث ولم يفهم الأنسان معنى الأنسانية =========== One apple fell and people understood Gravity Millions of bodies fell and people did not understand the meaning of humanity Spoiler SOCIAL MEDIA / التواصل الإجتماعي ~[ SnapChat : xry-n . ]~ ~[ 0506748951 . ]~
nxFairlywell Posted January 8, 2019 Posted January 8, 2019 انت مسوي ترايقر لسيرفر في السطر 6 عشان ايش ؟ ما اتوقع انك تحتاج ترايقر و احتمال يسبب لاق كل اللي تحتاجه زي كذا : function render_function() local vehicle = getPedOccupiedVehicle(localPlayer); local model = getElementModel(vehicle) if vehicle then if model == 520 then -- كود الدي اكس end end end addEventHandler('onClientRender', getRootElement(), render_function) Discord ID : nxFairlywell#6895
AnoirTiza Posted January 8, 2019 Author Posted January 8, 2019 39 minutes ago, NX_CI said: انت مسوي ترايقر لسيرفر في السطر 6 عشان ايش ؟ ما اتوقع انك تحتاج ترايقر و احتمال يسبب لاق كل اللي تحتاجه زي كذا : function render_function() local vehicle = getPedOccupiedVehicle(localPlayer); local model = getElementModel(vehicle) if vehicle then if model == 520 then -- كود الدي اكس end end end addEventHandler('onClientRender', getRootElement(), render_function) سويت كذا بس قالي الفنكشن لازم يكون في السيرفر سايد
nxFairlywell Posted January 8, 2019 Posted January 8, 2019 مين اللي قالك ؟ 1 Discord ID : nxFairlywell#6895
AnoirTiza Posted January 8, 2019 Author Posted January 8, 2019 شكرا إشتغل لما سويتها بنفسي كان بقلي في الديبق failed to call global و مدري ايش 1
nxFairlywell Posted January 9, 2019 Posted January 9, 2019 هذا الخطأ يعني عندك فنكشن مو معرف او متغير مو معرف Discord ID : nxFairlywell#6895
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