[Release][Standalone] Vape Script

Do enyone have this script with usable item?

Same here, any fix for it?

1 Like

Same here

it doesnt work for me somehow? i installed it and /vape doesnt word. already checked the script and find nothing worng. can anyone help pls?

Remind me Gmod x) Nice script

1 Like

Appreciate it has been a while since your comment, but after giving this mod a try, I think I have found the offending bit of code and how to fix it.

On line 213 of cl-vape.lua is:

TaskPlayAnim(ped, ad, “exit”, 8.00, -8.00, -1, (2 + 16 + 32), 0.00, 0, 0, 0)

Which I think is locking the camera when getting in a vehicle in first person.

If you comment out that line, and add “ClearPedSecondaryTask(ped)” beneath it instead, it should work fine (it will remove the vape pen as intended when entering a vehicle), without messing up the first person cam.

Here is my full function (note the commented-out line):

function PlayerIsEnteringVehicle()
IsPlayerAbleToVape = false
local ped = GetPlayerPed(-1)
local ad = “anim@heists@humane_labs@finale@keycards”
DeleteObject(VapeMod)
–TaskPlayAnim(ped, ad, “exit”, 8.00, -8.00, -1, (2 + 16 + 32), 0.00, 0, 0, 0)
ClearPedSecondaryTask(ped)
end

2 Likes

Nice release :slight_smile:

how to remove the vape prop from being stuck in hand, when using as an item?

1 Like

simple and good +rep

Off topic but what graphics mod is that! i need this

hello I modified the script so that it can be used with an item

sv-vape_modif.txt (2.5 KB)

sorry my english its no perfect

2 Likes

Nice Work Brother :+1:

1 Like

PermissionsGroup = “ADD_ACE_GROUP_HERE”, what do I add this in here for exceptional person’s permission?

Hey, is it possible for SP, i really love your mod of this, is there any way for me to make it into SP… :sob:

thank you very much, i loved this change you made

but… where exactly should I put, along with the file is enough?

thanks … added few condition for this vape…

1 Like

Is there anyway to make this possible to use while inside a vehicle?

pls fix the 1st person view in cars wtf are that doing in a vape script

Here is the modified script with the Item.
Vape.zip (4.0 KB)

  1. Simple Drag and Drop the Folder in your Ressource Directory
  2. Add “start Vape” to your server.cfg
  3. Create a new Item in your database called “vape”

You can use the Item to start the Vaping. Press E to smoke. Press G to stop Vaping.

Greets from Germany
Paul

1 Like