Jump to content

help!


VanDal

Recommended Posts

guys I need help to fix my spawn menu I want to see the city's screen whene i click in the city button :

function onCityClick(button)

if source == cityGridList and button == "left" then

if guiGridListGetSelectedCount(cityGridList) > 0 then

guiGridListClear(classGridList)

local selectedRow, selectedCol = guiGridListGetSelectedItem( cityGridList );

local cityName = guiGridListGetItemText( cityGridList, selectedRow, selectedCol )

local cityClasses = cities[cityName]

for x, y in pairs(cityClasses) do

local row = guiGridListAddRow(classGridList)

guiGridListSetItemText(classGridList, row, 1, x, false, false)

end

guiSetProperty(spawnScreenOKButton, "Disabled", "True")

guiSetProperty(skinPrevButton, "Disabled", "True")

guiSetProperty(skinNextButton, "Disabled", "True")

guiSetText(skinNumberLabel, 1)

end

end

end

what can i add for it ? plz help !

this a screen for it http://prntscr.com/5wl1ww

Link to comment

thnx but i already get this solution but shit not work i think i dont know where i make it.

local cityCameraData = guiGridListGetItemData(source, row, 1) 
                setCameraInterior ( tonumber ( cityCameraData["cameraInterior"] ) or 0 ) 
                setCameraMatrix ( tonumber ( cityCameraData["cityCPosX"] ) or 0, tonumber ( cityCameraData["cityCPosY"] ) or 0, tonumber ( cityCameraData["cityCPosZ"] ) or 0, tonumber ( cityCameraData["cityLookX"] ) or 0, tonumber ( cityCameraData["cityLookY"] ) or 0, tonumber ( cityCameraData["cityLookZ"] ) or 0 ) 

Link to comment

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