Jump to content

Need Help


sckatchof

Recommended Posts

  • Replies 55
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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) 

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

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...