PedSetActionNode()
That is the function used in LUA.
The first parameter is the ped you set it on.
The 2nd parameter is the action.
The 3rd and last parameter is the location of the action.
The 2nd parameter is the real puzzle. (The action)
I don't do action nodes though so you'll need to wait until someone else can come with an example or more info.