Jump to content

Flashmyname

Members
  • Posts

    90
  • Joined

  • Last visited

  • Days Won

    2

Flashmyname last won the day on March 10 2024

Flashmyname had the most liked content!

1 Follower

Details

  • Interests
    IT Network Systems Administration & Security / Cybersecurity Engineering

Recent Profile Visitors

3,152 profile views

Flashmyname's Achievements

Punk-@ss B*tch

Punk-@ss B*tch (12/54)

10

Reputation

  1. Thanks! Not ready yet, there are still a few big features and some performance work left. No date yet, but stay tuned!
  2. Mine's just a resource, runs on stable 1.6, you drop it on your server and that's it. MTA:NEON is a fork. Bit of a difference.
  3. Sunrise over San Fierro. - Quick sneak peek on Patreon on what's been going on lately.
  4. Same spot, same time, same weather. Lighting off / on. https://streamable.com/kl2mi3
  5. Been a while. - More info coming soon.
  6. Creating immersive visual effects in MTA with custom lighting and more! If you're interested, find out more information about the project on my Patreon! https://www.patreon.com/posts/project-aurora-115081763?utm_medium=clipboard_copy&utm_source=copyLink&utm_campaign=postshare_creator&utm_content=join_link
  7. Nevermind, figured it out in the end.
  8. But it's also ruining it somehow, because player cannot be set back to it's root, because the way my script works, when the player attaches to vehicle, the player can be set to its child, but when it's not needed anymore the player cannot be set back to its root, or maybe I'm just using it wrong, I only need this parent stuff when the player is attached a.k.a part of the attachedPlayers table. The reason why I would want to reset it back to root is because when the car changes interior/dimension the player because he's still an active element of the car, gets teleported there too, even if he is detached and etc.
  9. Yeah it's working now, somehow I've had completely forgot about this function. Thanks for the help!
  10. Hi guys! lately I've bumped into a problem in my script, which I really can't have any ideas how to solve, or where did I :Oed up with the logic. It's not really the hardest thing to do, but I overcomplicated it somehow with the tables and stuff. The script is basically simple, you can attach/detach to a vehicle with a button press, and when the car moves into different interior/dimension then your character will follow it there, but get's detached because I couldn't really make it work, bugged out with attach or something. But the important stuff is that the interior change is actually working somehow, but the dimension didn't changed, no matter how I done it. local attachedPlayers = {} function handleInteriorDimensionChange(oldInterior, newInterior, oldDimension, newDimension) local vehicle = source local attachedElements = getAttachedElements(vehicle) for _, attachedElement in ipairs(attachedElements) do if getElementType(attachedElement) == "player" then local attachedPlayer = attachedElement triggerClientEvent("playerAnimationToClient", root, "", "", attachedPlayer) triggerClientEvent("stopUpdatingPlayerRotation", root, attachedPlayer) if oldInterior ~= newInterior then setElementInterior(attachedPlayer, newInterior) outputChatBox (inspect (attachedPlayer) .. "'s interior changed from " .. oldInterior .. " to " .. newInterior) end if oldDimension ~= newDimension then setElementDimension(attachedPlayer, newDimension) outputChatBox(inspect(attachedPlayer) .. "'s dimension changed from " .. oldDimension .. " to " .. newDimension) end detachElements(attachedPlayer, vehicle) setElementData(attachedPlayer, "attached", false) setElementData(attachedPlayer, "attachedVehicle", nil) setElementData(attachedPlayer, "attachmentPosition", nil) if attachmentPoint then attachmentPointsStatus[attachmentPoint] = false end end end end function getAttachedPlayers(vehicle) local attachedPlayers = {} local attachedElements = getAttachedElements(vehicle) for _, attachedElement in ipairs(attachedElements) do if getElementType(attachedElement) == "player" then table.insert(attachedPlayers, attachedElement) end end return attachedPlayers end
×
×
  • Create New...