Sign in to follow this  
MiLaNo-ميلآنو

ابي مساعدتكم يا شباب : )

Recommended Posts

السسلآم عليكم ورحمه الله وبركاته

 

يا شباب انا ابي احط مثلا ب ماب باصات

بس ابي الباصات م تتحرك .. فريز 

 

ابيكم تساعدوني : )

Share this post


Link to post
 
Bus = createVehicle(id,x,y,z)
setElementFrozen(Bus,true)

id = اي دي الباص

x,y,z = الاحداثيات

  • Like 1

Share this post


Link to post

تقدر تستعمل الجداول احسن شي عشان تسوي عدد علي مزاجك + تسوي له فريز و الأماكن بدل ما تسوي صف طويل

مثال : 

local Buses = {
{ID = 437, PosX = 0, PosY = 0, PosZ = 0, Freeze = true},
{ID = 431, PosX = 10, PosY = 0, PosZ = 0, Freeze = true}
}

addEventHandler("onResourceStart", resourceRoot,
function()
for _,v in ipairs(Buses) do
local Bus = createVehicle(v["ID"], v["PosX"], v["PosY"], v["PosZ"])
setElementFrozen(Bus, v["Freeze"])
end
end)

 

  • Like 1

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.