basel-ksa Posted September 14, 2010 Share Posted September 14, 2010 hi broph.lua This file in : \resources\play i have make Some changes in it 1- Change the Main place When player enters the server . 2- Made the main Skin is Cj ??-------but i need to add some Clothes in the main Skin "Cj"----------?? broph.lua addEventHandler("onResourceStart", resourceRoot, function() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) repeat until spawnPlayer( player, -1259.3856201172, 163.54290771484, 14.1484375) fadeCamera(player, true) setCameraTarget(player, player) end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root,a function() setTimer(spawn, 1800, 1, source) end ) I Try but i fail : Plz can you Help me Link to comment
basel-ksa Posted September 14, 2010 Author Share Posted September 14, 2010 pLz help ?? Link to comment
Dark Dragon Posted September 14, 2010 Share Posted September 14, 2010 you need to use addPedClothes in the spawn function. for example function spawn(player) repeat until spawnPlayer( player, -1259.3856201172, 163.54290771484, 14.1484375) addPedClothes ( player, "moto", "moto", 16 ) -- this would be a blue helmet fadeCamera(player, true) setCameraTarget(player, player) end Link to comment
basel-ksa Posted September 14, 2010 Author Share Posted September 14, 2010 what "moto" like this Texture: bandred2 ?? plz i am noob : ( can you Explain that Link to comment
basel-ksa Posted September 14, 2010 Author Share Posted September 14, 2010 function spawn(player) addPedClothes ( player, "moto", "moto", 16 ) -- this would be a blue helmet fadeCamera(player, true) setCameraTarget(player, player) end like this ?? plz i whant to Change to Texture: bandred2 Model: bandknots how can i Change From helmet to Something else plz Link to comment
Virus xD Posted September 14, 2010 Share Posted September 14, 2010 hear you can see sctin stuf https://wiki.multitheftauto.com/wiki/CJ_Clothes and use bool addPedClothes ( ped thePed, string clothesTexture, string clothesModel, int clothesType ) to add clothes https://wiki.multitheftauto.com/wiki/AddPedClothes - fuction on wiki like this moto halmet you can made etc function spawn(player) -- addPedClothes ( thePed, "texture", "model", typeID ) addPedClothes ( player, "moto", "moto", 16 ) -- this would be a blue helmet addPedClothes ( player, "neckdollar", "neck", 13 ) -- dolar Necklace addPedClothes ( player, "boxingshoe", "biker", 16 ) -- grean convers fadeCamera(player, true) setCameraTarget(player, player) end 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