Snow-Man Posted January 28, 2014 Posted January 28, 2014 i make Other codes but XxmadeXx gave me this functions about random cars Note : cars and positions definated local c = locations[math.random(#locations)] local marker = createVehicle (math.random(#cars), c[1], c[2], c[3] -1) createBlipAttachedTo(marker, 53) USC Informations Head Staff & Owner Of USC. Youtube Channel : My Channel
Snow-Man Posted January 28, 2014 Author Posted January 28, 2014 Help ????? USC Informations Head Staff & Owner Of USC. Youtube Channel : My Channel
iPrestege Posted January 28, 2014 Posted January 28, 2014 i make Other codes but XxmadeXx gave me this functions about random cars Note : cars and positions definated local c = locations[math.random(#locations)] local marker = createVehicle (math.random(#cars), c[1], c[2], c[3] -1) createBlipAttachedTo(marker, 53) Show us your table.
Anubhav Posted January 28, 2014 Posted January 28, 2014 Whats wrong with this script? you tried /debugscript 3 ? what are errors in it? See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Snow-Man Posted January 28, 2014 Author Posted January 28, 2014 local cars = { {602}, {600}, {587}, {603}, {402}, {411}, {475}, {559}, {560}, {451}, {506}, {505}, {566}, {526}, {522}, {423}, {444}, {539} } locations = { {-2272.46704, 2286.02295, 4.22989}, {-2516.78662, 1229.13538, 36.83798}, {-2646.33350, 1357.95874, 6.57915}, {-1637.33765, 1296.62366, 6.39873}, {-1826.16296, 1310.79150, 59.09760}, {-1430.88330, -38.95546, 5.34191}, {-1368.96899, 19.28440, 5.36328}, {-1941.39233, -1086.80957, 30.14117}, {1245.36621, -2038.52136, 59.25457}, {1280.26892, -1810.79163, 12.79264}, {781.90558, -1344.65381, 12.89385} } Vehicles won't create in Map USC Informations Head Staff & Owner Of USC. Youtube Channel : My Channel
iPrestege Posted January 28, 2014 Posted January 28, 2014 i make Other codes but XxmadeXx gave me this functions about random cars Note : cars and positions definated local c = locations[math.random(#locations)] local marker = createVehicle (math.random(#cars), c[1], c[2], c[3] -1) createBlipAttachedTo(marker, 53) local marker = createVehicle ( cars [ math.random ( #cars ) ],unpack ( locations [ math.random ( #locations ) ] ) ) createBlipAttachedTo(marker, 53)
Moderators IIYAMA Posted January 29, 2014 Moderators Posted January 29, 2014 Also: local cars = { {602}, {600}, {587}, {603}, -- etc --Too: local cars = { 602, 600, 587, 603, --ect Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Snow-Man Posted January 31, 2014 Author Posted January 31, 2014 Error : why i can't get into vehicle ? USC Informations Head Staff & Owner Of USC. Youtube Channel : My Channel
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