Quantcast

Jump to content

» «
Photo

Spawning weapon script

1 reply to this topic
sebejszczyn
  • sebejszczyn

    Hmm.

  • Members
  • Joined: 14 Oct 2007
  • Poland

#1

Posted 15 November 2016 - 01:42 PM

Hello! This is my first try to scripting in GTA IV, and I've ben trying to spawn Deagle in excact position in Playboy's X safehouse. What I've got now is:

using System;
using System.Windows.Forms;
using System.Drawing;
using GTA;

namespace TestScript {
    public class Thread : Script {
        public Thread() {          
                    Pickup.CreateWeaponPickup(433.604f, 1465.32f, 38.9714f,DEAGLE,200);
                }
                Wait(0); 
            }
        }
    } 
}

But seems it isn't working. Any help?

 

 

 

 

 


yoloman
  • yoloman

    Crackhead

  • Members
  • Joined: 21 Jul 2014
  • None

#2

Posted 03 December 2016 - 09:04 PM

maybe instead of "DEAGLE" use "Weapon.Handgun_DesertEagle" but not sure if it works.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users