Scripts / [SOLVED] Need help with script

Author
Message
wut
4
Years of Service
User Offline
Joined: 2nd Aug 2019
Location:
Posted: 10th Aug 2019 21:06
Why is this script not working? I am very new and can't figure it out

function talk_init(e)
playerdist{}
end

function talk_main(e)
playerdist = GetPlayerDistance(e)
if playerdist < 50 then
Prompt("Press E to talk")
if g_KeyPressE = true then
Text(160,160,3,"Hello World")
end

The author of this post has marked a post as an answer.

Go to answer
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 11th Aug 2019 00:20
This post has been marked by the post author as the answer.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2024-04-27 00:40:06
Your offset time is: 2024-04-27 00:40:06