xploziv_mc Posted October 9, 2011 Share Posted October 9, 2011 Hi all and I need your help! I want to add in my map people.It's race map and I want to add people like CJ,black dealer and other dudes!I don't know what I must do to add that....but I see one map with my idea(people)!!! Link to comment
Ignition Posted October 9, 2011 Share Posted October 9, 2011 I believe you mean this server function. createPed -- Click this for more information about function Link to comment
CapY Posted October 9, 2011 Share Posted October 9, 2011 Hi all and I need your help!I want to add in my map people.It's race map and I want to add people like CJ,black dealer and other dudes!I don't know what I must do to add that....but I see one map with my idea(people)!!! local pX, pY, pZ = getElementPosition( getLocalPlayer() ) function pedLoad ( name ) createPed ( 120, pX+5, pY, pZ ) end addCommandHandler("cped", pedLoad) Link to comment
xploziv_mc Posted October 10, 2011 Author Share Posted October 10, 2011 thx 10x but where I must write that?thh I wri t in meta?or in other .lua file? I write with my gsm so maybe I have fails in my comment thx again Link to comment
CapY Posted October 10, 2011 Share Posted October 10, 2011 Meta: Ped.lua local pX, pY, pZ = getElementPosition( getLocalPlayer() ) function pedLoad ( name ) createPed ( 120, pX+5, pY, pZ ) end addCommandHandler("cped", pedLoad) Name it Ped.lua 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