iPrestege Posted March 18, 2013 Share Posted March 18, 2013 (edited) local x,y,z = getElementPosition(car7) local marker = createMarker ( x,y,z, "arrow", 4,255, 0, 0, 170 ) addEventHandler("onResourceStart",resourceRoot, function () attachElements (marker,car7,0,0,7) end ) Edited March 18, 2013 by Guest Link to comment
3NAD Posted March 18, 2013 Share Posted March 18, 2013 جرب كودي ذا addEventHandler('onResourceStart', resourceRoot, function ( ) local px, py, pz = getElementPosition ( source ) local vehicle = getPedOccupiedVehicle( source ) if vehicle then local vehicle1 = createVehicle ( 445, px, py, pz ) Marker = createMarker ( 0, 0, 0, "arrow", .75, 255, 0, 0, 170 ) warpPedIntoVehicle ( source, vehicle1 ) attachElements ( Marker, source, 0, 0, 2 ) end end ) source = مين هذا ؟ local x,y,z = getElementPosition(car7) local marker = createMarker ( x,y,z, "arrow", 4,255, 0, 0, 170 ) function xxx() attachElements (marker,car7,0,0,7) end كيف بتشتغل الوظيفة ؟ Link to comment
PaiN^ Posted March 18, 2013 Share Posted March 18, 2013 onResourceStart The source of this event is the root element in the resource that started. Link to comment
X-SHADOW Posted March 18, 2013 Share Posted March 18, 2013 source == thePlayer or the client or the one has enter the car . and ResourceStart it well work it's ok ! Link to comment
PaiN^ Posted March 18, 2013 Share Posted March 18, 2013 local x,y,z = getElementPosition(car7) local marker = createMarker ( x,y,z, "arrow", 4,255, 0, 0, 170 ) function xxx() attachElements (marker,car7,0,0,7) end !إذا ما راح تستخدم إفنت ماله داعي الفنكشن Link to comment
iMr.3a[Z]eF Posted March 18, 2013 Author Share Posted March 18, 2013 local x,y,z = getElementPosition(car7) local marker = createMarker ( x,y,z, "arrow", 4,255, 0, 0, 170 ) function xxx() attachElements (marker,car7,0,0,7) end اظن هالكود ما يتحرك الماركر مع السيارة Link to comment
iPrestege Posted March 18, 2013 Share Posted March 18, 2013 (edited) local x,y,z = getElementPosition(car7) local marker = createMarker ( x,y,z, "arrow", 4,255, 0, 0, 170 ) function xxx() attachElements (marker,car7,0,0,7) end اظن هالكود ما يتحرك الماركر مع السيارة لول نسيت الايفنت عدلتة ذذ انسخة ثانية # local x,y,z = getElementPosition(car7) local marker = createMarker ( x,y,z, "arrow", 4,255, 0, 0, 170 ) addEventHandler("onResourceStart",resourceRoot, function () attachElements (marker,car7,0,0,7) end ) Edited March 18, 2013 by Guest Link to comment
PaiN^ Posted March 18, 2013 Share Posted March 18, 2013 local x,y,z = getElementPosition(car7) local marker = createMarker ( x,y,z, "arrow", 4,255, 0, 0, 170 ) function xxx() attachElements (marker,car7,0,0,7) end اظن هالكود ما يتحرك الماركر مع السيارة يلصق الأشياء ببعضها attachElements فحيتحرك الماركر مع السيارة Link to comment
3NAD Posted March 18, 2013 Share Posted March 18, 2013 source == thePlayer or the client or the one has enter the car .and ResourceStart it well work it's ok ! كل إيفنت له عنصر مثل هذا "onPlayerSpawn" -- source = player "onVehicleExplode" -- source = vehicle "onClientGUIClick" -- source = gui element Link to comment
iMr.3a[Z]eF Posted March 18, 2013 Author Share Posted March 18, 2013 تم الحل أشكركم ع جهدكم # عناد مو قصدي اقلدك بصدق Link to comment
iPrestege Posted March 18, 2013 Share Posted March 18, 2013 تم الحل أشكركم ع جهدكم # عناد مو قصدي اقلدك بصدق العفو ما بغينا Link to comment
PaiN^ Posted March 18, 2013 Share Posted March 18, 2013 العفو ما بغينا =) العفو يالغالي Link to comment
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