manawydan Posted January 4, 2013 Posted January 4, 2013 which function to let everyone use the ped dumb? (no talking)
manawydan Posted January 5, 2013 Author Posted January 5, 2013 hurt when a ped he stays quiet. makes no sound.
manawydan Posted January 6, 2013 Author Posted January 6, 2013 Thank you. but how can I disable the speeches of all peds with PED_TYPE_DISABLED. thank you
TAPL Posted January 6, 2013 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
manawydan Posted January 6, 2013 Author Posted January 6, 2013 thank you. function pedNfale() AllPedsS = getElementsByType ( "ped" ) setPedVoice ( AllPedsS, PED_TYPE_DISABLED ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), pedNfale)
Castillo Posted January 6, 2013 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 )
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