Fiz o script da seguinte forma:
<meta>
<info author="Amanda" type="animation" name="choro" description="Script de chorar" />
<script src="script.Lua" />
</meta>
bool addCommandHandler ( string chorar, function function toggleSit(thePlayer)
if not getElementData(thePlayer, "sitting") then
setPedAnimation(thePlayer, "ped", "seat_down", -1, false, false, false, false)
setElementData(thePlayer, "sitting", true)
else
-- If you use again this command then your character stand up
setPedAnimation(thePlayer)
removeElementData(thePlayer, "sitting")
end
end
addCommandHandler("sit", toggleSit) [, bool caseSensitive = true ] )
Ele está certo?