Jump to content

| help | in : broph.lua !


basel-ksa

Recommended Posts

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 :roll:

Link to comment
  
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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...