Sticmy Posted June 5, 2015 Posted June 5, 2015 Hola tengo un problema con la ropa del CJ. estoy haciendo que el CJ les quite la ropa por ejemplo la gorra puse esta funcion: function CargarRopa(player) removePedClothes ( player, 0, 0 ) removePedClothes ( player, 1, 0 ) removePedClothes ( player, 2, 0 ) end addEvent("Cargar", true ) addEventHandler("Cargar", resourceRoot, CargarRopa) Me dicen cual es el problema quiero quitarle la ropa a CJ y no sale me dicen por que?
Estevam2d Posted June 5, 2015 Posted June 5, 2015 probarlo antes function CargarRopa() removePedClothes ( source, 0, 0 ) removePedClothes ( source, 1, 0 ) removePedClothes ( source, 2, 0 ) end addEvent("Cargar", true ) addEventHandler("Cargar", resourceRoot, CargarRopa) --- mi ejemplo function clothes() removePedClothes( source, "vest", "vest", 0 ) end addEvent("Cargar", true) addEventHandler("Cargar",root,clothes) ver si su gatillo esta maneia esto en el lado del cliente triggerServerEvent("Cargar",localPlayer)
Sticmy Posted June 5, 2015 Author Posted June 5, 2015 El primer codigo que me dijistes lo hice algo asi pero igual no salia .-.
Walid Posted June 5, 2015 Posted June 5, 2015 El primer codigo que me dijistes lo hice algo asi pero igual no salia .-. -- Server side function RemoveClothes ( ) for i=0,17 do removePedClothes ( source, i ) end end addEvent("Cargar", true ) addEventHandler("Cargar", root,RemoveClothes ) -- Client side triggerServerEvent("Cargar",localPlayer)
Recommended Posts