Mads' Resource Documentation
  • 📺Youtube
  • 🤝Discord
  • ⭐Tebex
  • 👨‍💻GitHub
  • 👋Welcome!
  • General Info
    • ❓Questions and Answers
      • Is X script locked/encrypted?
      • I need support, where can I reach out?
      • How do I update my server artifacts?
      • How do I transfer a script from one account to another?
      • How do I set my game build?
    • ⚠️Common Problems
      • You lack the required entitlement
      • Failed to verify protected resource
      • Could not find dependency /assetpacks for resource
  • Resources
    • 🪑Sit Anywhere
      • Adding Custom Models
      • Falling Through the Map
      • Exports
      • Events
    • 🚁Helicopter Camera
      • Adding custom helicopters
      • Moving the UI above the minimap
      • Adding controller inputs
      • Controls
      • Exports
      • Events
    • 🚙Slash Tires
      • Exports
      • Events
    • 🕶️Stungrenade
      • Adding the Stungrenade as an item
      • Measures Against Cheaters
      • Exports
      • Events
    • 🪖CS Styled Killfeed
      • General Information
      • Exports - Client Side
      • Exports - Server Side
      • Examples
      • Adding Messages to the feed
      • Weapons List / Death Reasons
      • Changing the position if the killfeed
    • Crouch & Crawl
      • Exports
    • 🔫Taser Effect
    • 🔭Telescopes
    • 🩺Crutches
      • How to make the script compatible with ps-walkstyle
    • ⛽No Exploding Pumps
    • 👠Hookers
Powered by GitBook
On this page
  1. Resources
  2. Crouch & Crawl

Exports

There are 4 exports included with the script (both are client-side).

Export
Description
Parameter(s)
Return type

IsPlayerCrouched

Returns if the local player is crouched

None

Boolean

IsPlayerProne

Returns if the local player is laying down or not

None

Boolean

IsPlayerCrawling

Returns if the player is crawling (only when moving forward/backward)

None

Boolean

GetPlayerProneType

Returns if the player is on his back or front ("onfront" or "onback")

None

String

Example

local isCrouched = exports.sit:IsPlayerCrouched()

if isCrouched then
    print("Player is crouching")
else
   print("Player is not crouching")
end
PreviousCrouch & CrawlNextTaser Effect

Last updated 11 months ago