manawydan Posted January 4, 2013 Share Posted January 4, 2013 which function to let everyone use the ped dumb? (no talking) Link to comment
manve1 Posted January 4, 2013 Share Posted January 4, 2013 what are you trying to say? like mute a person? Link to comment
manawydan Posted January 5, 2013 Author Share Posted January 5, 2013 hurt when a ped he stays quiet. makes no sound. Link to comment
manawydan Posted January 6, 2013 Author Share Posted January 6, 2013 Thank you. but how can I disable the speeches of all peds with PED_TYPE_DISABLED. thank you Link to comment
TAPL Posted January 6, 2013 Share Posted January 6, 2013 Thank you. but how can I disable the speeches of all peds with PED_TYPE_DISABLED. thank you Get all of the peds with this function: getElementsByType Link to comment
manawydan Posted January 6, 2013 Author Share Posted January 6, 2013 thank you. function pedNfale() AllPedsS = getElementsByType ( "ped" ) setPedVoice ( AllPedsS, PED_TYPE_DISABLED ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), pedNfale) Link to comment
Castillo Posted January 6, 2013 Share Posted January 6, 2013 getElementsByType returns a table of elements, not an element. function pedNfale ( ) local AllPeds = getElementsByType ( "ped" ) for _, ped in ipairs ( AllPeds ) do setPedVoice ( ped, "PED_TYPE_DISABLED" ) end end addEventHandler ( "onClientResourceStart", resourceRoot, pedNfale ) 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