w7sH Posted August 19, 2018 Share Posted August 19, 2018 السلام عليكم .. عندي الكود هذا ابي اذا اللاعب ركب الموتر تختفي الصورة واذا نزل ترجع addEventHandler("onClientRender", root, function() local seconds = getTickCount() / 1000 local R = math.sin(seconds) * 80 dxDrawImage(1155, 405, 188, 128, img , R) end ) Link to comment
w7sH Posted August 19, 2018 Author Share Posted August 19, 2018 (edited) وش المشكلة؟ addEventHandler("onClientRender", root, function () local theVehicle = getPedOccupiedVehicle (source ) if theVehicle then local seconds = getTickCount() / 1000 local R = math.sin(seconds) * 80 dxDrawImage(1155, 405, 188, 128, img , R) end end ) Edited August 19, 2018 by w7sH Link to comment
Trefeor Posted August 19, 2018 Share Posted August 19, 2018 حول ال source إلى localPlayer Link to comment
N3xT Posted August 19, 2018 Share Posted August 19, 2018 (edited) لازم تجيب موقع السيارة وتحط الصورة فوقها عشان تتحرك معاك https://wiki.multitheftauto.com/wiki/DxDrawImageOnElement Edited August 19, 2018 by N3xT 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