update lua sample

add external.