[VORP] [FREE] Outfits as item

PURPOSE :

This Server script intend to create items from outfit native vorp_character script in player inventory that can be used to change player comps

INSTALLATION :

Add “ensure Outfits” in your server.cfg

Import Outfit.sql in your database

Add the following lines into \vorp_character\server\server.lua :

    - TriggerEvent("Outfit:UpdatePlayercomps", source, json.encode(arguments.comps), arguments.Result) => near l.238 under the MySQL.insert one

    - TriggerEvent("Outfit:UpdatePlayercomps", source, arguments.Outfit.comps, arguments.Outfit.title) => near l.313 under the Character.updateCompTints one

Exemple :

image

image

IN GAME :

When you use the native vorp_character script and you make a new outfit / you change your comps, you’ll get an item named “Outfit” with your outfit name in description that cas be used to change comps in inventory

Download : GitHub - Dark-Edge/Vorp_Outfit: Attend to make Outfit as item that can be used in player inventory

Future plans :

  • add unique clothes as items to change player comps (F.E : vest item to change only the player vest)
  • link player outfit to an existing item in inventory (naked if no outfit)

Feel free to use this script as you want 'cause it’s opensource :wink:

3 Likes

Hey, I think you forgot to post the Github/download link? Images are also unavailable, maybe try to load them up again :slight_smile:

1 Like

Here it is mate ! i apologize for the disturb i’m a newbie and i just learn to post on cfx.re and github but thx for your comment :wink:

Hello, which part of the character/server should I put the additional lines in? The sql file does not execute because the ‘items’ table already exists
I know the errors I’m getting are on my part, but I would really like to get this script working

Hi ! Thanks for your comment, i updated the .sql on github with conditions so now it will work.
For the lines to add, you just have to add those two i gave you before in your vorp_character/server/server.lua file. I’ll update an exemple of the file on github on this point.

1 Like

I thank. Do you have a discord to share with us?

i have one but it’s mostly french and for my scripting purposes. however i can share and make scripts and channels for CFX

Send-me for eu view other script

Edit : I remembered that third party links aren’t tolerate so i added it on github

1 Like

anyway to get it to work with xakra_outfits?

Yeah it’s possible to add the lines on the serverside of the xakra script when it trigger the outfit instead of Vorp one! :slight_smile: