Jump to content

Can i add my own weapon skin to server?


Recommended Posts

Can you tell me what to do ?

i am so sorry i am new in scripting i did the wiki scripting tutorial and every thing worked but i still dont know how to make some thing new lol :lol:

here is the examples

Example 1: This example loads a combination of a custom DFF and TXD file to replace the Euros vehicle in-game. The collisions are embedded inside the DFF file.

outputChatBox ( "> replacing the euros vehicle" )

txd = engineLoadTXD ( "data/euros.txd" )

engineImportTXD ( txd, 587 )

dff = engineLoadDFF ( "data/euros.dff", 587 )

engineReplaceModel ( dff, 587 )

Example 2: This example loads a combination of custom DFF, TXD and COL files to replace an in-game model of a set of floors.

outputChatBox ( "> loading floor objects" )

txd_floors = engineLoadTXD ( "models/office_floors.txd" )

engineImportTXD ( txd_floors, 3781 )

col_floors = engineLoadCOL ( "models/office_floors.col" )

dff_floors = engineLoadDFF ( "models/office_floors.dff", 0 )

engineReplaceCOL ( col_floors, 3781 )

engineReplaceModel ( dff_floors, 3781 )

Example 3: This example replaces the victim billboards in last venturas (when replacing default models you do not need to replace a dff or col)

outputChatBox ( "> replacing billboards" )

txd_floors = engineLoadTXD ( "models/vgsn_billboard.txd" )

engineImportTXD ( txd_floors, 7300 )

i think i must use first one ... but how idk :(:oops::oops::oops::oops::oops::oops::oops::oops::?:?:(:(

Link to comment

The first one indeed. Replace "data/euros.txd" with the filepath of your file (be sure to add it to meta.xml!), and replace the number with the weapon model number.

Don't use the rest; That's DFF (so the model) related stuff, and that doesn't work for weapons (and peds too if you wanted to know, only objects and vehicles can have a custom DFF.).

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...