MR.President Posted October 14, 2017 Posted October 14, 2017 كيف اسوي بليب متحرك مثلا بليب يبقى على سيارة وين ما راحت او بليب يبقى على لاعب
Doffy Posted October 14, 2017 Posted October 14, 2017 (edited) createBlipAttachedTo Edited October 14, 2017 by #Himoo
MR.President Posted October 14, 2017 Author Posted October 14, 2017 function startBlip() for _,vehicles in ipairs(getElementsByType("vehicle")) do local id = getElementModel(vehicles) if id == 596 or id == 599 then createBlipAttachedTo (vehicles , 2 ) end end end ممكن تصلح الغلط بهذا الكود
^iiEcoo'x_) Posted October 14, 2017 Posted October 14, 2017 (edited) TableVehicle = { 432 , 456 }; function cretaeBlipInVehicle ( ) setTimer ( function ( ) for _ , v in ipairs ( getElementsByType ( 'vehicle' ) ) do for _ , id in ipairs ( TableVehicle ) do if ( getElementModel ( v ) == id ) then createBlipAttachedTo ( v , 10 ) end; end; end; end; end ,1000 * 5 , 0 ); end; Edited October 14, 2017 by #_iMr.[E]coo 1
Abdul KariM Posted October 15, 2017 Posted October 15, 2017 15 hours ago, #_iMr.[E]coo said: TableVehicle = { 432 , 456 }; function cretaeBlipInVehicle ( ) setTimer ( function ( ) for _ , v in ipairs ( getElementsByType ( 'vehicle' ) ) do for _ , id in ipairs ( TableVehicle ) do if ( getElementModel ( v ) == id ) then createBlipAttachedTo ( v , 10 ) end; end; end; end; end ,1000 * 5 , 0 ); end; كودك بيقعد يكرر البلب على السيارة اكثر من مره وهذا بيسبب لاق وماراح يشتغل لازم يستدعي الوظيفة 1
^iiEcoo'x_) Posted October 15, 2017 Posted October 15, 2017 (edited) @Abdul KariM TableVehicle = { 432 , 456 }; function cretaeBlipInVehicle ( ) setTimer ( function ( ) for _ , v in ipairs ( getElementsByType ( 'vehicle' ) ) do for _ , id in ipairs ( TableVehicle ) do if ( getElementModel ( v ) == id ) then if ( not getElementData ( v , 'CheckingBlip' ) == 'true' ) then createBlipAttachedTo ( v , 10 ) setElementData ( v , 'CheckingBlip', 'true' ) end; end; end; end; end ,1000 * 5 , 0 ); end; بالنسبة للإستدعاء هو يستدعيها بالطريقة الي بده اياها . Edited October 15, 2017 by #_iMr.[E]coo
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