Jump to content

create Ped


xXGhostXx

Recommended Posts

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
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

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...