ELMODA Posted June 16, 2018 Share Posted June 16, 2018 السلام عليكم ورحمة الله وبركاته , كل عام وانتم بألف خير , كان عندي مشكلة بسيطة مع امر setElementPosition ابي اسوي ذا الامر مع السيارة بمعنى انه ينقل السيارة مب الاعب # محاولتي (: addCommandHandler("نقل", function () veh = getElementType("vehicle") setElementPosition(veh,1907.35876, -2242.07642, 12.95656) end ) Link to comment
+Source|> Posted June 17, 2018 Share Posted June 17, 2018 21 hours ago, ELMODA said: السلام عليكم ورحمة الله وبركاته , كل عام وانتم بألف خير , كان عندي مشكلة بسيطة مع امر setElementPosition ابي اسوي ذا الامر مع السيارة بمعنى انه ينقل السيارة مب الاعب # محاولتي (: addCommandHandler("نقل", function () veh = getElementType("vehicle") setElementPosition(veh,1907.35876, -2242.07642, 12.95656) end ) addCommandHandler("نقل", function ( player ) veh = getPedOccupiedVehicle( player ) setElementPosition( veh, 1907.35876, -2242.07642, 12.95656 ) end ) Link to comment
N3xT Posted June 17, 2018 Share Posted June 17, 2018 29 minutes ago, +Source|> said: addCommandHandler("نقل", function ( player ) veh = getPedOccupiedVehicle( player ) setElementPosition( veh, 1907.35876, -2242.07642, 12.95656 ) end ) لو ما كان راكب فسيارة راح يطلع خطأ, ضيف تحقق Link to comment
Doffy Posted June 17, 2018 Share Posted June 17, 2018 addCommandHandler("نقل", function ( player ) if isPedInVehicle(player) then veh = getPedOccupiedVehicle( player ) setElementPosition( veh, 1907.35876, -2242.07642, 12.95656 ) else outputChatBox("* You must ride a vehicle .",player,255,0,0,true) end end ) Link to comment
ELMODA Posted June 17, 2018 Author Share Posted June 17, 2018 شكراا ياشباب ماقصرتم معي <3 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