Sign in to follow this  
sckatchof

Need Help

Recommended Posts

So, basically you want a garage spawner?

but instead it shows the blip of where the car is?

Yes

Share this post


Link to post
Yes

ok, Can you post the code you currently have please.

Client Side :

.. 
.. 
.. 
addEventHandler("onClientGUIClick",GridlOwnerCar,function(button) 
    if(button=="left")then 
        local rowindex, columnindex = guiGridListGetSelectedItem ( GridlOwnerCar ) 
        local carname = guiGridListGetItemText ( GridlOwnerCar, rowindex, columnindex) 
        triggerServerEvent("PCar", localPlayer, carname) 
    end 
end,false) 
.. 
  

Server Side :

addEvent("PCar",true) 
addEventHandler("PCar",root,function(carname) 
    if(carname ~= "")then 
        for i,cars in ipairs(getElementsByType("vehicle")) do 
            if(getVehicleName(cars)==carname)then 
                createBlipAttachedTo(cars,42,3,0,0,0,0,0,65535,client) 
            end 
        end 
    end 
end) 

Share this post


Link to post

The names of the cars in the guiGridList is in a different language, right?

Share this post


Link to post
The names of the cars in the guiGridList is in a different language, right?

grid list empty but when i buy a car it show in grid list car name

Share this post


Link to post
The names of the cars in the guiGridList is in a different language, right?

grid list empty but when i buy a car it show in grid list car name

Can you PM me your full script please...

Including your Gridlist

Share this post


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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.