It's a function I recently made for my reputation system. Well if you read the thread's title you know what does it do. Might be useful for other scripts, I guess...
If you want it @ lowercase, then must be: getGenderPronoun(cid)
-> he, she
If you want it @ uppercase, then must be: getGenderPronoun(cid, true)
-> He, She
eace:
If you want it @ lowercase, then must be: getGenderPronoun(cid)
-> he, she
If you want it @ uppercase, then must be: getGenderPronoun(cid, true)
-> He, She
Lua:
function getGenderPronoun(cid, uppercase)
return (getPlayerSex(cid) == 0 and (uppercase and 'Sh' or 'sh') or (uppercase and 'H' or 'h')) .. 'e'
end
Last edited: