function getHealthColor()
local health = getElementHealth(localPlayer)
if (health) then
local r, g, b = interpolateBetween ( 255, 0, 0, 103, 188, 107, health / 100, "Linear" )
return r, g, b
else
return 0, 255, 0
end
end
Enjoy
Summary: Whatever is globally defined within the same resource and within the same side (server/client) can be accessed by another file.
But if you want to access a function from another resource, use: call.
ببساطة اكتشفت انه ليس من صنعك عن طريق ملاحظة ان كودك ليس كامل, وكأنه جزء من كل.. فمثلاً
؟Vehcile وين جدول
؟id وكيف تم تعريف
واسماء الوظائف تدل على ان غرض الكود هو انه كلما يدخل لاعب مركبة محددة يلبس خوذة لأن
Helmet = خوذة
First:
You don't need an element data since you can just place variables instead (unless you want to declare that the player is wearing a seatbelt to the whole server), generally because you wouldn't want a pointless consumption of the server's CPU and clients' network traffic. Using variables is recommended.
Second:
onVehicleEnter is a server-side event while both guiGetScreenSize and guiCreateStaticImage are client-sided, So don't confuse both sides with each other. Use onClientVehicleEnter instead. And don't forget to define thePlayer argument/parameter in the handler function.
تحذير: فقط للبالغين اصحاب القلوب القوية
انظروا الى جرائم العالم الغربي في تعذيب الحيوانات حتى الموت, لا تخدعك اقوالهم عن الرأفة بالحيوان (طبعاً ليس جميعهم), الحمد لله على نعمة الاسلام
الحرام هو انك تحلل وتحرم بكيفك, يعني تقول هذا حلال وهذا حرام, اعياد الميلاد بدعة ابتدعها العالم الغربي, ما فيه مشكلة انك تخصص عيد ميلادك لزيادة معيار عبادتك لله سبحانه وتعالى, وما فيه مشكلة انك تعتبر عيد ميلادك كذكرى, والله اعلم