Jump to content

[QUESTION]Car Spawn


JohnLehn

Recommended Posts

Hi! Can someone tell me how can i make this : A red marker and when you are entering you will get a panel. You choose your vehicle by account level. It will be a list of vehicles. Let's say infernus. You need level 1 to spawn it. To spawn it you need to press the button "Spawn". How can i do this ?

Link to post

Hello, there is few things to do. Try to do it step by step, first try to make a red marker at the location you want with createMarker

Then try to create an event attached to it with : onPlayerMarkerHit

  • Like 1
Link to post
  • Moderators
37 minutes ago, iRackk said:

Ok, i did it, now what i must to use ? I want :Just click on the car and get a OutPutChatBox: You don't have necessary level to use this car ! 

Have you any level-system yet?

Edited by Patrick
Link to post

You can start working on showing a guiwindow using triggerClientEvent, add a grid and then add vehicles to the grid.

triggerClientEvent

guiCreateWindow

guiCreateGridList

guiGridListAddColumn

guiGridListAddRow

Then you can make it work with your lvl system if you have one

Edited by Spakye
Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...