Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Requesting a little help from any fellow scripter!

Featured Replies

To anyone who can help,

 

I wanted to make a script to simulate an inspection. 

Basically I want the script to display the weapons another player is holding. (Real person in multiplayer)

I don't just want the script to display the weapon in hand but all the weapons the member is holding.

 

Is this possible?

If it is could somebody please tell me how I can integrate this into the script.

 

Thanks,

 

Sasrical

My Mods: [color=#b22222]Speed Radar Script[/color][color=#b22222],[/color] [color=#daa520]POE[/color][color=#daa520], [/color][color=#0000ff]LicenseAnalyzer[/color]

4A02 at Mounties Gaming, Avid Modder / Script Writer, Problem Solver, and an awesome person :)

 

  • Author

MODERATOR NOTICE

Moved to Gameplay/Misc Mods.

Question: Do you know what class represents another player?

 

No. My knowledge isn't that advanced yet. Do you know? 

My Mods: [color=#b22222]Speed Radar Script[/color][color=#b22222],[/color] [color=#daa520]POE[/color][color=#daa520], [/color][color=#0000ff]LicenseAnalyzer[/color]

4A02 at Mounties Gaming, Avid Modder / Script Writer, Problem Solver, and an awesome person :)

 

I just asked on #gtaivnetscripthook (link requires an IRC client, or you can go to a web client and connect to that channel on freenode). It seems like Game.PlayerList is a field with a list of GTA.Player s (god, I wish I could figure out how to make StackOverflow's inline codeblocks work) in the game, and each Player object has a Character field with the Ped associated with them. Try using PlayerList to get the other players, find the right one somehow (maybe iterate through until you find one that is right?), and looking in *thatPlayer*.Character.Weapons.

EDIT: MulleDK19 gets credit for the answer if it works. I take blame if it doesn't (he said what the MP players are, and I guessed a strategy from there)

Edited by cp702

  • Author

I just asked on #gtaivnetscripthook (link requires an IRC client, or you can go to a web client and connect to that channel on freenode). It seems like Game.PlayerList is a field with a list of GTA.Player s (god, I wish I could figure out how to make StackOverflow's inline codeblocks work) in the game, and each Player object has a Character field with the Ped associated with them. Try using PlayerList to get the other players, find the right one somehow (maybe iterate through until you find one that is right?), and looking in *thatPlayer*.Character.Weapons.

EDIT: MulleDK19 gets credit for the answer if it works. I take blame if it doesn't (he said what the MP players are, and I guessed a strategy from there)

 

Alright this is great help. I will try this out and see what happens. Please keep this topic open so I can post if this method worked or did not.

My Mods: [color=#b22222]Speed Radar Script[/color][color=#b22222],[/color] [color=#daa520]POE[/color][color=#daa520], [/color][color=#0000ff]LicenseAnalyzer[/color]

4A02 at Mounties Gaming, Avid Modder / Script Writer, Problem Solver, and an awesome person :)

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.