Log in to reply
 

How to create marker with interaction?



  • How to create marker with interaction? For example: add hp, add money and skip few times.



  • Don't create multiple posts about the same thing.



  • By interaction does that also include using those markers to create a list of items to purchase? I'm struggling to find any tutorials on this myself as I'm trying to create a new vehicle shop since the only ones we have don't cater for every vehicle, yet alone have the physical space to spawn some.



  • @Inteco-Galaxy said in How to create marker with interaction?:

    How to create marker with interaction?

    You can not create markers with interactions. The game does not provide such for a simple reason because what you can easily do is to compare the character's current position with your marker position and start any action on a near match. TADDAA!


  • MODERATOR

    @GTA-Modding-Noob said in How to create marker with interaction?:

    By interaction does that also include using those markers to create a list of items to purchase? I'm struggling to find any tutorials on this myself as I'm trying to create a new vehicle shop since the only ones we have don't cater for every vehicle, yet alone have the physical space to spawn some.

    Like Nietzsche once said, "He who would learn to fly one day must first learn to stand and walk." So, forget about a new shop for now, and learn the basics first. You could study the code of Single Player Apartment, for instance, to see how it's done. Like in my own version of SPA, there's code like:

        Public Sub OnTick()
            Try
                If Not Game.IsLoading Then
                    If My.Settings.ThreeAltaStreet = "Enable" Then
                        'Enter Apartment
                        If (Not BuyMenu.Visible AndAlso Not playerPed.IsInVehicle AndAlso Not playerPed.IsDead) AndAlso Apartment.EntranceDistance < 3.0 Then
                            DisplayHelpTextThisFrame(EnterApartment & Apartment.Name)
                            If Game.IsControlJustPressed(0, GTA.Control.Context) Then
                                Game.FadeScreenOut(500)
                                Wait(500)
                                BuyMenu.Visible = True
                                World.RenderingCamera = World.CreateCamera(Apartment.CameraPosition, Apartment.CameraRotation, Apartment.CameraFOV)
                                hideHud = True
                                Wait(500)
                                Game.FadeScreenIn(500)
                            End If
                        End If
    

    As @Cyron43 suggested, simply check for ped proximity to create a popup menu.


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.