xXGhostXx Posted September 26, 2018 Share Posted September 26, 2018 Hi guys ! What is problem in my code ? function pedSkinShop ( name ) local ped1 = createPed ( 81, 198.7470703125, -165.396484375, 1000.5234375 ) , createPed ( 51, 197.8974609375, -164.8134765625, 1000.5234375 ) setElementInterior(ped, 14) setPedRotation ( ped, 270 ) setPedFrozen ( ped, not frozen ) end addEventHandler ( "onResourceStart", getResourceRootElement(), pedSkinShop ) Link to comment
Dimos7 Posted September 26, 2018 Share Posted September 26, 2018 What are you try to do? Link to comment
N3xT Posted September 26, 2018 Share Posted September 26, 2018 function pedSkinShop ( ) local ped1, ped2 = createPed ( 81, 198.7470703125, -165.396484375, 1000.5234375 ), createPed ( 51, 197.8974609375, -164.8134765625, 1000.5234375 ) if ( ped1 ) then setElementInterior ( ped1, 14 ) setElementRotation ( ped1, 270 ) setElementFrozen ( ped1, true ) end end addEventHandler ( "onResourceStart", resourceRoot, pedSkinShop ) 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