Jump to content

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


Recommended Posts

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

مثال : 

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
Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...