VanDal Posted January 26, 2015 Posted January 26, 2015 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
VanDal Posted January 26, 2015 Author Posted January 26, 2015 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 )
Moderators IIYAMA Posted January 28, 2015 Moderators Posted January 28, 2015 Items are strings, not tables. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Moderators IIYAMA Posted January 28, 2015 Moderators Posted January 28, 2015 Aha, my mistake, never noticed it before. O_o Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
TAPL Posted January 28, 2015 Posted January 28, 2015 Though it written "string" on the wiki ._. http://i.imgur.com/MhJKEZo.png
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now