Snow-Man Posted January 18, 2014 Posted January 18, 2014 local ped = {} local peds = { {-2278.0231933594, 2329.0556640625, 3.9665122032166 }, {3671.1079101563, -2088.8110351563, 0.54761910438538 }, {163.9245300293, -1941.3592529297, 2.7734375 }, {-2173.396484375, -2415.1823730469, 33.296875 } } for i=1,#peds do ped[i] = createPed(math.random(26,41),peds[i][1],peds[i][2],peds[i][3] +0.5, 269) setElementFrozen ( ped, true ) end debug : WARNING : Explorer/server.lua:10: bad Argument @ 'setElementFrozen [Expected element at argument 1, got table]
Forrest Posted January 18, 2014 Posted January 18, 2014 Because you're trying to freeze the table. setElementFrozen ( ped[i], true )
Snow-Man Posted January 18, 2014 Author Posted January 18, 2014 omg, i missed thanks other question, when i restart Resource ped spawn Random but i choose only 2 skins (26, 24)
Moderators IIYAMA Posted January 18, 2014 Moderators Posted January 18, 2014 Because math.random(26,41) But why 26,24? Skins between 26 and 41.....
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