FlyingSpoon Posted April 23, 2015 Posted April 23, 2015 (edited) - Fixed - Edited April 23, 2015 by Guest
Walid Posted April 23, 2015 Posted April 23, 2015 (edited) Change source with localPlayer setElementInterior ( localPlayer, 0 ) Ex: function clickGrid() local row,col = guiGridListGetSelectedItem(mainGridlist) if (row and col and row ~= -1 and col ~= -1) then setElementModel ( dummyPed, 29 ) triggerServerEvent ( "zombie.hunters", localPlayer) guiSetVisible ( spawnMenu, false ) showCursor ( false ) destroyElement ( dummyPed ) setElementInterior ( localPlayer, 0 ) setElementDimension (localPlayer, 0 ) end end Edited April 23, 2015 by Guest
FlyingSpoon Posted April 23, 2015 Author Posted April 23, 2015 Too late Figured it out. Anyways, thanks.
Walid Posted April 23, 2015 Posted April 23, 2015 Too late Figured it out.Anyways, thanks. you are welcome
FlyingSpoon Posted April 23, 2015 Author Posted April 23, 2015 You see my code above which you set as an example, now when GUI closes etc, the camera is like in the air like it's all black and I can see the sun? setCameraMatrix(254.7190, -41.1370, 1002, 256.7190, -41.1370, 1002 ) function clickGrid() local row,col = guiGridListGetSelectedItem(mainGridlist) if (row and col and row ~= -1 and col ~= -1) then setElementModel ( dummyPed, 29 ) triggerServerEvent ( "zombie.hunters", localPlayer) guiSetVisible ( spawnMenu, false ) showCursor ( false ) destroyElement ( dummyPed ) setElementInterior ( localPlayer, 0 ) setElementDimension (localPlayer, 0 ) end end
Enargy, Posted April 24, 2015 Posted April 24, 2015 why did you removed the code? this can help people who are just starting scripting. if you believe that anyone thinks steal your code the don't post it
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